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

!14465 低错修改

Merge pull request !14465 from zengyawen/cherry-pick-1675938502
......@@ -35,7 +35,7 @@ getFreeSize(path:string):Promise<number>
```js
let path = "/dev";
statfs.getFreeSize(path).then((number) => {
statvfs.getFreeSize(path).then((number) => {
console.info("getFreeSize promise successfully, Size: " + number);
}).catch((err) => {
console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code);
......@@ -61,7 +61,7 @@ getFreeSize(path:string, callback:AsyncCallback<number>): void
```js
let path = "/dev";
statfs.getFreeSize(path, (err, number) => {
statvfs.getFreeSize(path, (err, number) => {
if (err) {
console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code);
} else {
......@@ -94,7 +94,7 @@ getTotalSize(path: string): Promise<number>
```js
let path = "/dev";
statfs.getTotalSize(path).then((number) => {
statvfs.getTotalSize(path).then((number) => {
console.info("getTotalSize promise successfully, Size: " + number);
}).catch((err) => {
console.info("getTotalSize with error message: " + err.message + ", error code: " + err.code);
......@@ -120,7 +120,7 @@ getTotalSize(path: string, callback: AsyncCallback<number>): void
```js
let path = "/dev";
statfs.getTotalSize(path, (err, number) => {
statvfs.getTotalSize(path, (err, number) => {
if (err) {
console.info("getTotalSize with error message: " + err.message + ", error code: " + err.code);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册