1# File Management Subsystem ChangeLog 2 3## cl.filemanagement.1 Changed environment 4 5The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **environment** module supports error code processing. 6 7**Change Impacts** 8 9If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **environment** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. 10 11**Key API/Component Changes** 12 13Before the change, **environment** was imported using **@ohos.environment**: 14 15```js 16import environment from '@ohos.environment'; 17``` 18 19But now, **environment** is imported using **@ohos.file.environment**: 20 21```js 22import environment from '@ohos.file.environment'; 23``` 24 25## cl.filemanagement.2 Changed securityLabel 26 27The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **securityLabel** module supports error code processing. 28 29**Change Impacts** 30 31If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **securityLabel** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. 32 33**Key API/Component Changes** 34 35Before the change, **securityLabel** was imported using **@ohos.securityLabel**: 36 37```js 38import securityLabel from '@ohos.securityLabel'; 39``` 40 41But now, **securityLabel** is imported using **@ohos.file.securityLabel**: 42 43```js 44import securityLabel from '@ohos.file.securityLabel'; 45``` 46 47## cl.filemanagement.3 Changed fs 48 49The **ino** attribute type of the **Stat** API under the **fs** module is changed. 50 51**Change Impacts** 52 53The **ino** attribute type is changed from number to BigInt, to adapt the inode range of all types of files in the file system. 54 55**Key API/Component Changes** 56 57The type of the **ino** attribute of the **Stat** API is changed from number to BigInt. 58 59## cl.filemanagement.4 Changed fileAccess 60 61The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **fileAccess** module supports error code processing. 62 63**Change Impacts** 64 65If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **fileAccess** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. 66 67**Key API/Component Changes** 68 69Before the change, **fileAccess** was imported using **@ohos.data.fileAccess**: 70 71```js 72import fileAccess from '@ohos.data.fileAccess'; 73``` 74 75But now, **fileAccess** is imported using **@ohos.file.fileAccess**: 76 77```js 78import fileAccess from '@ohos.file.fileAccess'; 79``` 80 81## cl.filemanagement.5 Changed fileExtensionInfo 82 83The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. 84 85**Change Impacts** 86 87If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **fileExtensionInfo** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. 88 89**Key API/Component Changes** 90 91Before the change, **fileExtensionInfo** was imported using **@ohos.fileExtensionInfo**: 92 93```js 94import fileExtensionInfo from '@ohos.fileExtensionInfo'; 95``` 96 97But now, **fileExtensionInfo** is imported using **@ohos.file.fileExtensionInfo**: 98 99```js 100import fileExtensionInfo from '@ohos.file.fileExtensionInfo'; 101``` 102 103## cl.filemanagement.6 Changed storageStatistics 104 105The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. 106 107**Change Impacts** 108 109If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **storageStatistics** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. 110 111**Key API/Component Changes** 112 113Before the change, **storageStatistics** was imported using **@ohos.storageStatistics**: 114 115```js 116import storageStatistics from '@ohos.storageStatistics'; 117``` 118 119But now, **storageStatistics** is imported using **@ohos.file.storageStatistics**: 120 121```js 122import storageStatistics from '@ohos.file.storageStatistics'; 123``` 124 125## cl.filemanagement.7 Changed volumeManager 126 127The file management subsystem **d.ts** file has been archived moved to the **file** directory. The **volumeManager** module supports error code processing. 128 129**Change Impacts** 130 131If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **volumeManager** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. 132 133**Key API/Component Changes** 134 135Before the change, **volumeManager** was imported using **@ohos.volumeManager**: 136 137```js 138import volumeManager from '@ohos.volumeManager'; 139``` 140 141But now, **volumeManager** is imported using **@ohos.file.volumeManager**: 142 143```js 144import volumeManager from '@ohos.file.volumeManager'; 145``` 146