diff --git a/interfaces/kits/js/src/mod_fs/properties/mkdir_core.cpp b/interfaces/kits/js/src/mod_fs/properties/mkdir_core.cpp index cca9bb6e567926180f92ca281e5fc9c86cba1a10..55b755edd1fdd4ad72ffbe514c753d4b37d66b7d 100644 --- a/interfaces/kits/js/src/mod_fs/properties/mkdir_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/mkdir_core.cpp @@ -44,6 +44,7 @@ static int UvAccess(const string &path, int mode) HILOGE("Failed to request heap memory."); return ENOMEM; } + return uv_fs_access(nullptr, accessReq.get(), path.c_str(), mode, nullptr); }