Searched refs:realFilePath (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/ability/dmsfwk/common/test/unittest/src/ |
H A D | distributed_sched_utils_test.cpp | 63 std::string realFilePath = ""; variable 64 EXPECT_FALSE(IsValidPath(inFilePath, realFilePath)); 65 EXPECT_EQ("", realFilePath); 68 EXPECT_FALSE(IsValidPath(inFilePath, realFilePath)); 69 EXPECT_EQ("", realFilePath); 86 std::string realFilePath = ""; variable 87 EXPECT_TRUE(IsValidPath(inFilePath, realFilePath)); 88 EXPECT_FALSE(realFilePath.empty());
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_daemon_handler.cpp | 242 char realFilePath[PATH_MAX + 1] = { '\0' }; in RemoveFile() local 243 if (filePath == nullptr || realpath(filePath, realFilePath) == nullptr) { in RemoveFile() 247 if (!IsValideJsonPath(realFilePath) && !IsValideSystemPath(realFilePath) && in RemoveFile() 248 !IsValideCodePath(realFilePath)) { in RemoveFile() 252 if (!BundleFileUtils::RemoveFile(realFilePath)) { in RemoveFile()
|
/ohos5.0/foundation/ability/dmsfwk/common/src/ |
H A D | distributed_sched_utils.cpp | 60 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath) in IsValidPath() argument 69 realFilePath = std::string(path); in IsValidPath() 70 if (realFilePath.empty()) { in IsValidPath() 74 if (!std::filesystem::exists(realFilePath)) { in IsValidPath() 75 …real file path %{public}s does not exist in the file system.", GetAnonymStr(realFilePath).c_str()); in IsValidPath() 76 realFilePath = ""; in IsValidPath() 79 …HILOGI("The real file path %{public}s exist in the file system.", GetAnonymStr(realFilePath).c_str… in IsValidPath()
|
/ohos5.0/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/ |
H A D | file_trash_n_exporter.cpp | 206 string realFilePath = realFilePathWithTime.substr(trashPathWithTimePrefixPos + slashSize); in FindSourceFilePath() local 207 size_t pos = realFilePath.rfind(TRASH_SUB_DIR + timeSlot + "/"); in FindSourceFilePath() 212 string realFilePathPrefix = realFilePath.substr(0, pos); in FindSourceFilePath() 213 string realFileName = realFilePath.substr(pos + TRASH_SUB_DIR.length() + in FindSourceFilePath() 215 realFilePath = "/" + realFilePathPrefix + realFileName; in FindSourceFilePath() 216 HILOG_INFO("FindSourceFilePath: realFilePath After = %{public}s", realFilePath.c_str()); in FindSourceFilePath() 217 return realFilePath; in FindSourceFilePath() 372 string realFilePath = FindSourceFilePath(filterDirent); in GenerateFileInfoEntity() local 382 fileInfoEntity.srcPath = realFilePath; in GenerateFileInfoEntity()
|
/ohos5.0/foundation/multimedia/media_foundation/services/media_monitor/server/src/ |
H A D | media_monitor_service.cpp | 387 std::string realFilePath = fileFloader_ + fileName; in WriteBufferFromQueue() local 389 FILE *dumpFile = fopen(realFilePath.c_str(), "a"); in WriteBufferFromQueue() 390 FALSE_RETURN_MSG(dumpFile != nullptr, "pcm file %{public}s open failed", realFilePath.c_str()); in WriteBufferFromQueue() 398 (void)DeleteHistoryFile(realFilePath); in WriteBufferFromQueue() 399 dumpFile = fopen(realFilePath.c_str(), "a"); in WriteBufferFromQueue()
|
/ohos5.0/foundation/ability/dmsfwk/common/include/ |
H A D | distributed_sched_utils.h | 29 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath);
|