记事本另存为生成的文件为空文件

Signed-off-by: li-li-wang <wangliliang5@huawei.com>
This commit is contained in:
li-li-wang 2023-08-31 16:28:01 +08:00 committed by baoyang
parent 6f1996fe09
commit 4583e618fe

View File

@ -261,11 +261,6 @@ struct Sa {
result.want.parameters.pick_path_return.push(this.resultUri);
result.resultCode = 0;
fs.closeSync(srcFd);
try {
await fs.close(file);
} catch (err) {
console.log(TAG, 'close fail', err.code, err.message);
}
return;
}).catch(async (err) => {
console.error(TAG, 'DocumentViewPicker failed', err.code, err.message);