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

Function isFileExist

Core/MemoryFile_Win32.cpp:316–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool isFileExist(const MMKVPath_t &nsFilePath) {
317 if (nsFilePath.empty()) {
318 return false;
319 }
320 auto attribute = GetFileAttributes(nsFilePath.c_str());
321 return (attribute != INVALID_FILE_ATTRIBUTES);
322}
323
324bool mkPath(const MMKVPath_t &str) {
325 wchar_t *path = _wcsdup(str.c_str());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected