From da0ce65f9c015225035e534d0adcdc10ee832ae2 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Wed, 27 Apr 2022 16:37:31 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- .../reference/apis/js-apis-statfs.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-statfs.md b/en/application-dev/reference/apis/js-apis-statfs.md index 137f4cbc55..b106173246 100644 --- a/en/application-dev/reference/apis/js-apis-statfs.md +++ b/en/application-dev/reference/apis/js-apis-statfs.md @@ -1,6 +1,6 @@ # statfs -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE:**
+> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE:**
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -44,9 +44,9 @@ Obtains the number of free bytes of the specified file system in asynchronous mo - Example ```js - let path = "/data"; + let path = "/dev"; statfs.getFreeBytes(path).then(function (number){ - console.info("getFreeBytes successfully:"+ number); + console.info("getFreeBytes promise successfully:"+ number); }).catch(function(err){ console.info("getFreeBytes failed with error:"+ err); }); @@ -71,7 +71,7 @@ Obtains the number of free bytes of the specified file system in asynchronous mo ```js statfs.getFreeBytes(path, function(err, number){ - //do something + console.info("getFreeBytes callback successfully:"+ number); }); ``` @@ -98,9 +98,9 @@ Obtains the total number of bytes of the specified file system in asynchronous m - Example ```js - let path = "/data"; + let path = "/dev"; statfs.getTotalBytes(path).then(function (number){ - console.info("getTotalBytes successfully:"+ number); + console.info("getTotalBytes promise successfully:"+ number); }).catch(function(err){ console.info("getTotalBytes failed with error:"+ err); }); @@ -125,6 +125,6 @@ Obtains the total number of bytes of the specified file system in asynchronous m ```js statfs.getTotalBytes(path, function(err, number){ - //do something + console.info("getTotalBytes callback successfully:"+ number); }); ``` -- GitLab