1# @ohos.file.fileExtensionInfo (User File Extension Information) (System API)
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```ts
13import fileExtensionInfo from '@ohos.file.fileExtensionInfo';
14```
15
16## fileExtensionInfo.DeviceType
17
18Defines the values of **deviceType** used in **RootInfo**.
19
20**Model restriction**: This API can be used only in the stage model.
21
22**System capability**: SystemCapability.FileManagement.UserFileService
23
24| Name| Value| Description|
25| ----- | ------ | ------ |
26| DEVICE_LOCAL_DISK | 1 | Local disk.|
27| DEVICE_SHARED_DISK | 2 | Shared disk.|
28| DEVICE_SHARED_TERMINAL | 3 | Distributed network device.|
29| DEVICE_NETWORK_NEIGHBORHOODS | 4 | Network neighbor device.|
30| DEVICE_EXTERNAL_MTP | 5 | MTP device.|
31| DEVICE_EXTERNAL_USB | 6 | USB device.|
32| DEVICE_EXTERNAL_CLOUD | 7 | Cloud disk.|
33
34## fileExtensionInfo.DeviceFlag
35
36Defines the values of **deviceFlags** used in **RootInfo**. **deviceFlags** is used to determine whether a capability is available through the AND operation.
37
38**Model restriction**: This API can be used only in the stage model.
39
40**System capability**: SystemCapability.FileManagement.UserFileService
41
42### Properties
43
44  | Name| Type  | Read-Only| Writable| Description    |
45  | ------ | ------ | ---- | ---- | -------- |
46  | SUPPORTS_READ   | number | Yes  | No  | The device supports read.|
47  | SUPPORTS_WRITE   | number | Yes  | No  | The device supports write.|
48
49## fileExtensionInfo.DocumentFlag
50
51Defines the values of **mode** used in **FileInfo**.
52
53**Model restriction**: This API can be used only in the stage model.
54
55**System capability**: SystemCapability.FileManagement.UserFileService
56
57### Properties
58
59  | Name| Type  | Read-Only| Writable| Description    |
60  | ------ | ------ | ---- | ---- | -------- |
61  | REPRESENTS_FILE   | number | Yes  | No  | File.|
62  | REPRESENTS_DIR   | number | Yes  | No  | Directory.|
63  | SUPPORTS_READ   | number | Yes  | No  | This file is readable.|
64  | SUPPORTS_WRITE   | number | Yes  | No  | This file is writable.|
65