From ba2b8df950f02a9641dfd55e7e3a798ba9383372 Mon Sep 17 00:00:00 2001 From: huweiqi Date: Wed, 8 Mar 2023 06:47:29 +0000 Subject: [PATCH] fixed b6c056b from https://gitee.com/weiqi-hu/docs/pulls/15655 modify demo code Signed-off-by: huweiqi Change-Id: I0ae6309fd16ac089ec806adb0191e09d7591e5d1 --- .../file-management/medialibrary-filepath-guidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md b/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md index 562ae00767..74a844f946 100644 --- a/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md +++ b/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md @@ -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); -- GitLab