未验证 提交 c69635b4 编写于 作者: O openharmony_ci 提交者: Gitee

!17308 【回合3.2】fs access 补充返回值解释

Merge pull request !17308 from zhuhongtao666/cherry-pick-1681443915
......@@ -146,7 +146,7 @@ access(path: string): Promise<boolean>
| 类型 | 说明 |
| ------------------- | ---------------------------- |
| Promise<boolean> | Promise对象。返回boolean。 |
| Promise<boolean> | Promise对象。返回boolean,表示文件是否存在。 |
**示例:**
......@@ -206,6 +206,12 @@ accessSync(path: string): boolean
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | 是 | 文件应用沙箱路径。 |
**返回值:**
| 类型 | 说明 |
| ------------------- | ---------------------------- |
| boolean | 返回boolean,表示文件是否存在。 |
**示例:**
```js
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册