Searched refs:srcFilePath (Results 1 – 6 of 6) sorted by relevance
| /base/hiviewdfx/hiview/service/ |
| D | hiview_service.h | 41 int32_t Copy(const std::string& srcFilePath, const std::string& destFilePath); 42 int32_t Move(const std::string& srcFilePath, const std::string& destFilePath); 72 int CopyFile(const std::string& srcFilePath, const std::string& destFilePath);
|
| D | hiview_service.cpp | 234 int32_t HiviewService::CopyFile(const std::string& srcFilePath, const std::string& destFilePath) in CopyFile() argument 236 int srcFd = open(srcFilePath.c_str(), O_RDONLY); in CopyFile() 238 …EW_LOGE("failed to open source file, src=%{public}s", StringUtil::HideSnInfo(srcFilePath).c_str()); in CopyFile() 276 int32_t HiviewService::Copy(const std::string& srcFilePath, const std::string& destFilePath) in Copy() argument 278 return CopyFile(srcFilePath, destFilePath); in Copy() 281 int32_t HiviewService::Move(const std::string& srcFilePath, const std::string& destFilePath) in Move() argument 283 int copyResult = CopyFile(srcFilePath, destFilePath); in Move() 288 bool result = FileUtil::RemoveFile(srcFilePath); in Move()
|
| /base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
| D | memory_collector_impl.cpp | 591 std::string srcFilePath = GetSnapshotPath("/data/log/faultlog/temp", pidStr); in CollectHprof() local 592 if (srcFilePath.empty()) { in CollectHprof() 593 srcFilePath = GetSnapshotPath("/data/log/reliability/resource_leak/memory_leak", pidStr); in CollectHprof() 594 if (srcFilePath.empty()) { in CollectHprof() 609 if (FileUtil::CopyFile(srcFilePath, savePath) != 0) { in CollectHprof() 610 … HIVIEW_LOGE("copy from %{public}s to %{public}s failed.", srcFilePath.c_str(), savePath.c_str()); in CollectHprof()
|
| /base/print/print_fwk/services/print_service/src/ |
| D | print_cups_client.cpp | 296 void PrintCupsClient::SymlinkFile(std::string &srcFilePath, std::string &destFilePath) in SymlinkFile() argument 298 int ret = symlink(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkFile() 323 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in SymlinkDirectory() local 326 stat(srcFilePath.c_str(), &filestat); in SymlinkDirectory() 328 SymlinkDirectory(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkDirectory() 343 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory() 346 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory() 368 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in CopyDirectory() local 371 stat(srcFilePath.c_str(), &filestat); in CopyDirectory() 373 CopyDirectory(srcFilePath.c_str(), destFilePath.c_str()); in CopyDirectory() [all …]
|
| /base/print/print_fwk/services/print_service/include/ |
| D | print_cups_client.h | 117 static void SymlinkFile(std::string &srcFilePath, std::string &destFilePath);
|
| /base/print/print_fwk/test/unittest/fwk_print_cups_client_test/ |
| D | print_cups_client_test.cpp | 129 std::string srcFilePath = "./PrintCupsClientTest_0003_srcDir/PrintCupsClientTestFileName"; variable 130 std::ofstream testSrcFile(srcFilePath.c_str(), std::ios::out); 170 std::string srcFilePath = std::string(subSrcDir) + "/PrintCupsClientTestFileName"; variable 171 std::ofstream testSrcFile(srcFilePath.c_str(), std::ios::out);
|