diff --git a/en/application-dev/reference/apis/js-apis-filemanager.md b/en/application-dev/reference/apis/js-apis-filemanager.md index 88f58da288e50a05731fda26de56581fa5a46e0e..56371fb3b9eb367009bd0d2ec8b55810d23513ed 100644 --- a/en/application-dev/reference/apis/js-apis-filemanager.md +++ b/en/application-dev/reference/apis/js-apis-filemanager.md @@ -83,8 +83,8 @@ Obtains information about the second-level album or files in asynchronous mode. - Parameters | Name| Type| Mandatory| Description| | --- | --- | --- | -- | - | path | promise| Yes| URI of the directory to query.| - | type | promise| Yes| Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.| + | path | string | Yes| URI of the directory to query.| + | type | string | Yes| Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.| | options | Object | No| The options are as follows:
-  **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.
-  **offset**: position to start the query. The value is a number.
-  **count**: number of files to query.| - Return value @@ -130,8 +130,8 @@ Obtains information about the second-level album or files in asynchronous mode. | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ------------------------------------------------------------ | - | path | promise | Yes | URI of the directory to query. | - | type | promise | Yes | Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.| + | path | string | Yes | URI of the directory to query. | + | type | string | Yes | Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.| | options | Object | No| The options are as follows:
-  **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.
-  **offset**: position to start the query. The value is a number.
-  **count**: number of files to query.| | callback | AsyncCallback<[FileInfo](#fileinfo)[]> | Yes | Callback invoked to return the file information obtained. | - Error @@ -167,15 +167,15 @@ Creates a file in the specified path in asynchronous mode. This API uses a promi - Parameters | Name| Type| Mandatory| Description| | --- | --- | --- | -- | - | filename | promise| Yes| Name of the file to create.| - | path | promise| Yes| URI of the file to create.| + | filename | string | Yes| Name of the file to create.| + | path | string | Yes| URI of the file to create.| | options | Object | No| The options are as follows:
-  **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.| - Return value | Type| Description| | --- | -- | - | promise| Promise used to return the URI of the file created.| + | string | Promise used to return the URI of the file created.| - Error | Error Info| Error Code|Description| @@ -211,8 +211,8 @@ Creates a file in the specified path in asynchronous mode. This API uses a callb | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ----------------------------- | - | filename | promise | Yes | Name of the file to create. | - | path | promise | Yes | URI of the file to create. | + | filename | string | Yes | Name of the file to create. | + | path | string | Yes | URI of the file to create. | | options | Object | No| The options are as follows:
-  **dev**: See [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.| | callback | AsyncCallback<[FileInfo](#fileinfo)[]> | Yes | Callback invoked to return the file information obtained. | @@ -248,9 +248,9 @@ Defines the file information returned by **getRoot()** or **listFile()**. | Name| Type| Readable| Writable| Description| | --- | -- | -- | -- | -- | -| name | promise| Yes| No| File name.| -| path | promise| Yes| No| URI of the file.| -| type | promise| Yes| No| File type.| +| name | string | Yes| No| File name.| +| path | string | Yes| No| URI of the file.| +| type | string | Yes| No| File type.| | size | number | Yes| No| File size.| | addedTime | number | Yes| No| Time when the file was scanned to the database.| | modifiedTime | number | Yes| No| Time when the file was modified.| @@ -265,4 +265,4 @@ Defines the device type. | Name| Type | Readable| Writable| Description | | ------ | ------ | ---- | ---- | -------- | -| name | promise| Yes | Yes | Device name.| +| name | string | Yes | Yes | Device name.|