mirror of
https://github.com/openharmony/utils_native_lite.git
synced 2026-07-19 14:33:34 -04:00
update js/builtin/kvstorekit/src/nativeapi_kv_impl.c.
utils功能扩展支持模拟器
This commit is contained in:
@@ -178,6 +178,10 @@ int ClearKVStore(const char* dataPath)
|
||||
goto EXIT;
|
||||
}
|
||||
while (dir != NULL) {
|
||||
if (strcmp(dir->d_name, ".") == 0 || strcmp(dir->d_name, "..") == 0) {
|
||||
dir = readdir(fileDir);
|
||||
continue;
|
||||
}
|
||||
if (memset_s(fullPath, FILE_NAME_MAX_LEN + 1, 0x0, FILE_NAME_MAX_LEN + 1) != EOK) {
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user