From a6503f081367334108a82dc32ede131849878d05 Mon Sep 17 00:00:00 2001 From: 18721213663 Date: Tue, 22 Aug 2023 11:42:05 +0800 Subject: [PATCH] statvfs_add_sync Signed-off-by: 18721213663 --- interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp b/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp index 937cf7684..24e853f63 100644 --- a/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp +++ b/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp @@ -23,7 +23,9 @@ napi_value StatvfsExport(napi_env env, napi_value exports) { static napi_property_descriptor desc[] = { DECLARE_NAPI_FUNCTION("getFreeSize", GetFreeSize), + DECLARE_NAPI_FUNCTION("getFreeSizeSync", GetFreeSizeSync), DECLARE_NAPI_FUNCTION("getTotalSize", GetTotalSize), + DECLARE_NAPI_FUNCTION("getTotalSizeSync", GetTotalSizeSync), }; NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); return exports; -- Gitee