| 650 | } |
| 651 | |
| 652 | bool 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 | |
| 661 | std::optional<MMKVPath_t> getUniqueFileName(const MMKVPath_t &folder, const MMKVPath_t &prefix) { |
| 662 | // Buffer for the resulting path |
nothing calls this directly
no test coverage detected