| 567 | } |
| 568 | |
| 569 | MMKV_EXPORT bool backupOne(const char *mmapID, const char *dstDir, const char *rootPath) { |
| 570 | auto dst = string(dstDir); |
| 571 | if (rootPath) { |
| 572 | auto root = string(rootPath); |
| 573 | if (root.length() > 0) { |
| 574 | return MMKV::backupOneToDirectory(mmapID, dst, &root); |
| 575 | } |
| 576 | } |
| 577 | return MMKV::backupOneToDirectory(mmapID, dst); |
| 578 | } |
| 579 | |
| 580 | MMKV_EXPORT bool restoreOne(const char *mmapID, const char *srcDir, const char *rootPath) { |
| 581 | auto src = string(srcDir); |
nothing calls this directly
no test coverage detected