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

!2132 update api

Merge pull request !2132 from zhangxingxia/master
......@@ -1432,7 +1432,7 @@ lstat(path:string, callback:AsyncCallback<Stat>): void
```js
fileio.lstat(path, function (err, stat) {
// do something
));
});
```
......@@ -1827,7 +1827,7 @@ chown(path: string, uid: number, gid: number): Promise<void>
- 示例:
```js
let stat = fileio.statSync(path);
fileio.chown(path, stat.uid, stat.gid)).then(function(){
fileio.chown(path, stat.uid, stat.gid).then(function(){
console.info("chown successfully");
}).catch(function(err){
console.info("chown failed with error:"+ err);
......@@ -2127,7 +2127,7 @@ fdopenStream(fd: number, mode: string): Promise<Stream>
- 示例:
```js
fileio.fdopenStream(fd, mode).then(function(stream){
console.info("openStream successfully"+);
console.info("openStream successfully");
}).catch(function(err){
console.info("openStream failed with error:"+ err);
});
......
......@@ -174,6 +174,6 @@ unmount(volumeId: string, callback:AsyncCallback<boolean>):void
| id<sup>9+</sup> | number | 卷id |
| uuid<sup>9+</sup> | string | 卷uuid |
| description<sup>9+</sup> | string | 卷相关描述 |
| removeAble<sup>9+</sup> | boolean | 是否为可移动存储设备 |
| removable<sup>9+</sup> | boolean | 是否为可移动存储设备 |
| state<sup>9+</sup> | int | 当前卷状态 |
| path<sup>9+</sup> | string | 卷的挂载地址 |
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册