提交 8e15c5fa 编写于 作者: A annie_wangli

update docs

Signed-off-by: Nannie_wangli <annie.wangli@huawei.com>
上级 7bd66ad0
...@@ -89,11 +89,11 @@ Obtains information about the files in the second-level directory in asynchronou ...@@ -89,11 +89,11 @@ Obtains information about the files in the second-level directory in asynchronou
| Promise&lt;FileInfo[]&gt; | Promise used to return the file information obtained.| | Promise&lt;FileInfo[]&gt; | Promise used to return the file information obtained.|
- Error - Error
| | Error Info| Error Code|Description| | Error Info| Error Code|Description|
| --- | -- | --- | -- | | -- | --- | -- |
| | No such file or directory | 2 | The directory or file of the specified URI does not exist.| | No such file or directory | 2 | The directory or file of the specified URI does not exist.|
| | No such process | 3 | Failed to obtain the FMS service.| | No such process | 3 | Failed to obtain the FMS service.|
| | Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js ```js
// Obtain all files in the directory. // Obtain all files in the directory.
...@@ -129,11 +129,11 @@ Obtains information about the files in the second-level directory in asynchronou ...@@ -129,11 +129,11 @@ Obtains information about the files in the second-level directory in asynchronou
| callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes| Callback invoked to return the file information obtained.| | callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes| Callback invoked to return the file information obtained.|
- Error - Error
| | Error Info| Error Code| Description| | Error Info| Error Code| Description|
| ------------------------- | ------------------------- | ------ | ------------------------- | | ------------------------- | ------ | ------------------------- |
| | No such file or directory | 2 | The directory or file of the specified URI does not exist.| | No such file or directory | 2 | The directory or file of the specified URI does not exist.|
| | No such process | 3 | Failed to obtain the FMS service.| | No such process | 3 | Failed to obtain the FMS service.|
| | Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js ```js
// Call listFile() and getRoot() to obtain the file UIRs. // Call listFile() and getRoot() to obtain the file UIRs.
...@@ -167,12 +167,12 @@ Creates a file in the specified path in asynchronous mode. This method uses a pr ...@@ -167,12 +167,12 @@ Creates a file in the specified path in asynchronous mode. This method uses a pr
| promise<string>| Promise used to return the URI of the file created.| | promise<string>| Promise used to return the URI of the file created.|
- Error - Error
| | Error Info| Error Code|Description| | Error Info| Error Code|Description|
| --- | -- | --- | -- | | -- | --- | -- |
| | Operation not permitted | 1 | A file with the same name already exists.| | Operation not permitted | 1 | A file with the same name already exists.|
| | No such file or directory | 2 | The directory or file of the specified URI does not exist.| | No such file or directory | 2 | The directory or file of the specified URI does not exist.|
| | No such process | 3 | Failed to obtain the FMS service.| | No such process | 3 | Failed to obtain the FMS service.|
| | Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js ```js
// Create a file. // Create a file.
...@@ -204,12 +204,12 @@ Creates a file in the specified path in asynchronous mode. This method uses a ca ...@@ -204,12 +204,12 @@ Creates a file in the specified path in asynchronous mode. This method uses a ca
- Error - Error
| | Error Info| Error Code| Description| | Error Info| Error Code| Description|
| ------------------------- | ------------------------- | ------ | ------------------------- | | ------------------------- | ------ | ------------------------- |
| | Operation not permitted | 1 | A file with the same name already exists.| | Operation not permitted | 1 | A file with the same name already exists.|
| | No such file or directory | 2 | The directory or file of the specified URI does not exist.| | No such file or directory | 2 | The directory or file of the specified URI does not exist.|
| | No such process | 3 | Failed to obtain the FMS service.| | No such process | 3 | Failed to obtain the FMS service.|
| | Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js ```js
// Create a file. // Create a file.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册