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

!11521 bugfix fileio lstat logerror

Merge pull request !11521 from zhuhongtao666/myfeature
...@@ -1525,7 +1525,7 @@ lstat(path: string): Promise<Stat> ...@@ -1525,7 +1525,7 @@ lstat(path: string): Promise<Stat>
```js ```js
let filePath = pathDir + "/test.txt"; let filePath = pathDir + "/test.txt";
fileio.lstat(filePath).then(function(stat){ fileio.lstat(filePath).then(function(stat){
console.info("get link status succeed, " + the size of file is + stat.size); console.info("get link status succeed, the size of file is" + stat.size);
}).catch(function(err){ }).catch(function(err){
console.info("get link status failed with error:"+ err); console.info("get link status failed with error:"+ err);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册