Home
last modified time | relevance | path

Searched refs:origDir (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp165 if (origDir == DEVICE_EL1_DIR) { in GetBackupDir()
171 auto slashIndex = origDir.rfind("/"); in GetBackupDir()
176 std::string endStr = origDir.substr(slashIndex); in GetBackupDir()
182 void KeyBackup::ListAndCheckDir(std::string &origDir) in ListAndCheckDir() argument
184 LOGI("list and check dir %s", origDir.c_str()); in ListAndCheckDir()
185 if (access(origDir.c_str(), F_OK) == 0) { in ListAndCheckDir()
190 int32_t ret = GetBackupDir(origDir, backupDir); in ListAndCheckDir()
201 CheckAndCopyFiles(backupDir, origDir); in ListAndCheckDir()
254 DIR *dir = opendir(origDir.c_str()); in GetFileList()
256 LOGE("fail to open %s", origDir.c_str()); in GetFileList()
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dkey_backup.h51 int32_t GetBackupDir(std::string &origDir, std::string &backupDir);
52 void ListAndCheckDir(std::string &origDir);
76 int32_t GetFileList(const std::string &origDir, const std::string &backDir,
78 void AddOrigFileToList(const std::string &fileName, const std::string &origDir,