1# @ohos.file.fileExtensionInfo (User File Extension Information) 2 3The **fileExtensionInfo** module defines attributes in **RootInfo** and **FileInfo** of the user file access and management module. 4 5>**NOTE** 6> 7>- The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8>- The APIs provided by this module are system APIs. 9 10## Modules to Import 11 12```js 13import fileExtensionInfo from '@ohos.file.fileExtensionInfo'; 14``` 15 16## fileExtensionInfo.DeviceType 17 18Defines the values of **deviceType** used in **RootInfo**. 19 20**System capability**: SystemCapability.FileManagement.UserFileService 21 22| Name| Value| Description| 23| ----- | ------ | ------ | 24| DEVICE_LOCAL_DISK | 1 | Local disk.| 25| DEVICE_SHARED_DISK | 2 | Shared disk.| 26| DEVICE_SHARED_TERMINAL | 3 | Distributed network device.| 27| DEVICE_NETWORK_NEIGHBORHOODS | 4 | Network neighbor device.| 28| DEVICE_EXTERNAL_MTP | 5 | MTP device.| 29| DEVICE_EXTERNAL_USB | 6 | USB device.| 30| DEVICE_EXTERNAL_CLOUD | 7 | Cloud disk.| 31 32## fileExtensionInfo.DeviceFlag 33 34Defines the values of **deviceFlags** used in **RootInfo**. **deviceFlags** is used to determine whether a capability is available through the AND operation. 35 36**System capability**: SystemCapability.FileManagement.UserFileService 37 38### Attributes 39 40 | Name| Type | Readable| Writable| Description | 41 | ------ | ------ | ---- | ---- | -------- | 42 | SUPPORTS_READ | number | Yes | No | The device supports read.| 43 | SUPPORTS_WRITE | number | Yes | No | The device supports write.| 44 45## fileExtensionInfo.DocumentFlag 46 47Defines the values of **mode** used in **FileInfo**. 48 49**System capability**: SystemCapability.FileManagement.UserFileService 50 51### Attributes 52 53 | Name| Type | Readable| Writable| Description | 54 | ------ | ------ | ---- | ---- | -------- | 55 | REPRESENTS_FILE | number | Yes | No | File.| 56 | REPRESENTS_DIR | number | Yes | No | Directory.| 57 | SUPPORTS_READ | number | Yes | No | This file is readable.| 58 | SUPPORTS_WRITE | number | Yes | No | This file is writable.| 59