}
void RemoveAllRecoveryFiles(const std::string& prefix, uid_t uid) {
- fs::path root_path = ci::GetRootAppPath(false, uid);
+ fs::path root_path = ci::GetRecoveryFilePath(ci::GetRootAppPath(false, uid));
if (!fs::exists(root_path))
return;
for (auto& dir_entry : fs::directory_iterator(root_path)) {
}
fs::path FindRecoveryFile(const std::string& prefix, uid_t uid) {
- fs::path root_path = ci::GetRootAppPath(false, uid);
+ fs::path root_path = ci::GetRecoveryFilePath(ci::GetRootAppPath(false, uid));
if (!fs::exists(root_path))
return {};