The file management subsystem **d.ts** file has been moved to the **file** directory. The **environment** module supports error code processing.
The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **environment** module supports error code handling.
**Change Impacts**
**Change Impact**
If 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.
If your application is developed based on earlier versions, note that the **d.ts** file location and the name of the module to be imported are changed. The **environment** module supports error code handling. See [Adaptation Guide](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md).
**Key API/Component Changes**
Before the change, **environment**was imported using**@ohos.environment**:
Before the change, **environment**is imported from**@ohos.environment**:
```js
importenvironmentfrom'@ohos.environment';
```
But now, **environment** is imported using**@ohos.file.environment**:
Now, **environment** is imported from**@ohos.file.environment**:
```js
importenvironmentfrom'@ohos.file.environment';
```
## cl.filemanagement.2 Changed securityLabel
## cl.filemanagement.2 securityLabel Change
The file management subsystem **d.ts** file has been moved to the **file** directory. The **securityLabel** module supports error code processing.
Moved the file management subsystem **d.ts** file to the **file** directory. The **securityLabel** module supports error code handling.
**Change Impacts**
**Change Impact**
If 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.
If your application is developed based on earlier versions, note that the **d.ts** file location and the name of the module to be imported are changed. The **securityLabel** module supports error code handling. See [Adaptation Guide](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md).
**Key API/Component Changes**
Before the change, **securityLabel**was imported using**@ohos.securityLabel**:
Before the change, **securityLabel**is imported from**@ohos.securityLabel**:
```js
importsecurityLabelfrom'@ohos.securityLabel';
```
But now, **securityLabel** is imported using**@ohos.file.securityLabel**:
Now, **securityLabel** is imported from**@ohos.file.securityLabel**:
The **ino** attribute type of the **Stat** API under the **fs** module is changed.
Changed the **ino** attribute type of **Stat** under **fs**.
**Change Impacts**
**Change Impact**
The **ino** attribute type is changed from number to BigInt, to adapt to the inode range of all types of files in the file system.
The **ino** attribute type is changed from number to BigInt, to adapt to the **inode** range of all types of files in the file system.
**Key API/Component Changes**
The type of the **ino** attribute of the **Stat** API is changed from number to BigInt.
The type of the **ino** attribute of **Stat** is changed from number to BigInt.
## cl.filemanagement.4 Changed fileAccess
## cl.filemanagement.4 fileAccess Change
The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileAccess** module supports error code processing.
Moved the file management subsystem **d.ts** file to the **file** directory. The **fileAccess** module supports error code handling.
**Change Impacts**
**Change Impact**
If 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.
If your application is developed based on earlier versions, note that the **d.ts** file location and the name of the module to be imported are changed. The **fileAccess** module supports error code handling. See [Adaptation Guide](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md).
**Key API/Component Changes**
Before the change, **fileAccess**was imported using**@ohos.data.fileAccess**:
Before the change, **fileAccess**is imported from**@ohos.data.fileAccess**:
```js
importfileAccessfrom'@ohos.data.fileAccess';
```
But now, **fileAccess** is imported using**@ohos.file.fileAccess**:
Now, **fileAccess** is imported from**@ohos.file.fileAccess**:
```js
importfileAccessfrom'@ohos.file.fileAccess';
```
## cl.filemanagement.5 Changed fileExtensionInfo
## cl.filemanagement.5 fileExtensionInfo Change
The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileExtensionInfo** module supports error code processing.
Moved the file management subsystem **d.ts** file to the **file** directory. The **fileExtensionInfo** module supports error code handling.
**Change Impacts**
**Change Impact**
If 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.
If your application is developed based on earlier versions, note that the **d.ts** file location and the name of the module to be imported are changed. The **fileExtensionInfo** module supports error code handling. See [Adaptation Guide](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md).
**Key API/Component Changes**
Before the change, **fileExtensionInfo**was imported using**@ohos.fileExtensionInfo**:
Before the change, **fileExtensionInfo**is imported from**@ohos.fileExtensionInfo**:
The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileExtensionInfo** module supports error code processing.
Moved the file management subsystem **d.ts** file to the **file** directory. The **fileExtensionInfo** module supports error code handling.
**Change Impacts**
**Change Impact**
If 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.
If your application is developed based on earlier versions, note that the **d.ts** file location and the name of the module to be imported are changed. The **storageStatistics** module supports error code handling. See [Adaptation Guide](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md).
**Key API/Component Changes**
Before the change, **storageStatistics** was imported using**@ohos.storageStatistics**:
Before the change, **storageStatistics** was imported from**@ohos.storageStatistics**:
The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileExtensionInfo** module supports error code processing.
Moved the file management subsystem **d.ts** file to the **file** directory. The **fileExtensionInfo** module supports error code handling.
**Change Impacts**
**Change Impact**
If 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.
If your application is developed based on earlier versions, note that the **d.ts** file location and the name of the module to be imported are changed. The **volumeManager** module supports error code handling. See [Adaptation Guide](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md).
**Key API/Component Changes**
Before the change, **volumeManager** was imported using**@ohos.volumeManager**:
Before the change, **volumeManager** was imported from**@ohos.volumeManager**:
```js
importvolumeManagerfrom'@ohos.volumeManager';
```
But now, **volumeManager** is imported using**@ohos.file.volumeManager**:
Now, **volumeManager** is imported from**@ohos.file.volumeManager**:
Deprecated the **fileio** APIs, which do not return error codes; added APIs that return error codes.
**Change Impact**
For applications developed based on earlier versions, pay attention to the iterative update of deprecated APIs. The specifications of the new APIs are slightly adjusted. Pay attention to the usage of the new APIs.
**Key API/Component Changes**
The APIs of **@ohos.fileio** do not support error code handling and are deprecated. New APIs with minor changes in parameters are added in **@ohos.file.fs** to support unified error code handling specifications. The new APIs function the same as the original APIs. The following table lists the API changes.
The APIs of @ohos.file.fs support unified exception handling. For details, see [File Management](../../../application-dev/reference/apis/js-apis-file-fs.md).