MCPcopy Create free account
hub / github.com/Tencent/MMKV / isFileExist

Function isFileExist

Core/MemoryFile.cpp:315–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315bool isFileExist(const string &nsFilePath) {
316 if (nsFilePath.empty()) {
317 return false;
318 }
319
320 return access(nsFilePath.c_str(), F_OK) == 0;
321}
322
323#ifndef MMKV_APPLE
324extern bool mkPath(const MMKVPath_t &str) {

Callers 6

getMMKVWithIDMethod · 0.70
backupAllToDirectoryMethod · 0.70
tryMigrateLegacyMMKVFileFunction · 0.70
getMMKVWithIDMethod · 0.70
getStorageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected