提交 ba2b8df9 编写于 作者: H huweiqi 提交者: 胡伟奇

fixed b6c056bb from https://gitee.com/weiqi-hu/docs/pulls/15655

modify demo code
Signed-off-by: Nhuweiqi <huweiqi1@huawei.com>
Change-Id: I0ae6309fd16ac089ec806adb0191e09d7591e5d1
上级 e1633367
......@@ -135,7 +135,7 @@ async function copySandbox2Public() {
console.error('file asset get failed, message = ' + err);
}
let fdPub = await fileAsset.open('rw');
let fdSand = await fs.open(sandboxDirPath + 'testFile.txt', OpenMode.READ_WRITE);
let fdSand = await fs.open(sandboxDirPath + 'testFile.txt', fs.OpenMode.READ_WRITE);
await fs.copyFile(fdSand.fd, fdPub);
await fileAsset.close(fdPub);
await fs.close(fdSand.fd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册