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

Function deleteFile

Core/MemoryFile_Win32.cpp:652–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652bool deleteFile(const MMKVPath_t &path) {
653 if (!DeleteFile(path.c_str())) {
654 const auto &utf8Path = MMKVPath_t2String(path);
655 MMKVError("failed to delete file [%s], %d", utf8Path.c_str(), GetLastError());
656 return false;
657 }
658 return true;
659}
660
661std::optional<MMKVPath_t> getUniqueFileName(const MMKVPath_t &folder, const MMKVPath_t &prefix) {
662 // Buffer for the resulting path

Callers

nothing calls this directly

Calls 1

MMKVPath_t2StringFunction · 0.85

Tested by

no test coverage detected