Searched refs:targetDir (Results 1 - 6 of 6) sorted by relevance
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | connection_detector.cpp | 140 bool ConnectionDetector::GetConnectionStatus(const std::string &targetDir, const std::string &networkId) in GetConnectionStatus() argument 153 if ((pNameList->namelist[i])->d_name != targetDir) { in GetConnectionStatus() 156 string dest = SYS_HMDFS_PATH + '/' + targetDir; in GetConnectionStatus() 158 string statusFile = SYS_HMDFS_PATH + '/' + targetDir + '/' + CONNECTION_STATUS_FILE_NAME; in GetConnectionStatus() 180 int32_t ConnectionDetector::RepeatGetConnectionStatus(const std::string &targetDir, const std::string &networkId) in RepeatGetConnectionStatus() argument 183 while (retryCount++ < MAX_RETRY - 1 && !GetConnectionStatus(targetDir, networkId)) { in RepeatGetConnectionStatus()
|
H A D | daemon.cpp | 177 auto targetDir = ss.str(); in OpenP2PConnection() local 180 if (!ConnectionDetector::GetConnectionStatus(targetDir, networkId)) { in OpenP2PConnection() 187 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId); in OpenP2PConnection() 216 auto targetDir = ss.str(); in ConnectionCount() local 223 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId); in ConnectionCount() 226 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId); in ConnectionCount() 230 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId); in ConnectionCount()
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file.cpp | 548 auto targetDir = dir; in IsDirExistNormal() local 549 if (targetDir.back() != FILE_SEPARATOR_CHAR) { in IsDirExistNormal() 550 targetDir.push_back(FILE_SEPARATOR_CHAR); in IsDirExistNormal() 553 if (fileName.size() > targetDir.size() && fileName.substr(0, targetDir.size()) == targetDir) { in IsDirExistNormal() 562 auto targetDir = srcPath; in GetAllFileListNormal() local 563 if (targetDir.back() != FILE_SEPARATOR_CHAR) { in GetAllFileListNormal() 564 targetDir.push_back(FILE_SEPARATOR_CHAR); in GetAllFileListNormal() 567 if (fileName.size() > targetDir in GetAllFileListNormal() 576 auto targetDir = srcPath; GetChildNamesNormal() local [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | connection_detector.h | 40 static bool GetConnectionStatus(const std::string &targetDir, const std::string &networkId); 41 static int32_t RepeatGetConnectionStatus(const std::string &targetDir, const std::string &networkId);
|
/foundation/filemanagement/dfs_service/test/unittests/distributed_file_daemon/ |
H A D | connection_detector_test.cpp | 90 string targetDir = "/test/file"; in HWTEST_F() local 92 bool ret = ConnectionDetector::GetConnectionStatus(targetDir, networkId); in HWTEST_F() 100 string targetDir; in HWTEST_F() local 102 bool ret = ConnectionDetector::GetConnectionStatus(targetDir, networkId); in HWTEST_F() 146 string targetDir; in HWTEST_F() local 148 int32_t ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId); in HWTEST_F() 156 string targetDir = "testDir"; in HWTEST_F() local 158 int32_t ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_operator.cpp | 1616 std::string targetDir = extractParam.targetPath; in ExtractResourceFiles() local 1617 if (!MkRecursiveDir(targetDir, true)) { in ExtractResourceFiles() 1618 LOG_E(BMS_TAG_INSTALLD, "create targetDir failed"); in ExtractResourceFiles() 1634 if (!MkRecursiveDir(targetDir + relativeDir, true)) { in ExtractResourceFiles() 1639 std::string filePath = targetDir + entryName; in ExtractResourceFiles()
|
Completed in 8 milliseconds