Home
last modified time | relevance | path

Searched refs:srcFilePath (Results 1 – 5 of 5) sorted by relevance

/base/hiviewdfx/hiview/service/
Dhiview_service.h40 int32_t Copy(const std::string& srcFilePath, const std::string& destFilePath);
41 int32_t Move(const std::string& srcFilePath, const std::string& destFilePath);
68 int CopyFile(const std::string& srcFilePath, const std::string& destFilePath);
Dhiview_service.cpp233 int32_t HiviewService::CopyFile(const std::string& srcFilePath, const std::string& destFilePath) in CopyFile() argument
235 int srcFd = open(srcFilePath.c_str(), O_RDONLY); in CopyFile()
237 …EW_LOGE("failed to open source file, src=%{public}s", StringUtil::HideSnInfo(srcFilePath).c_str()); in CopyFile()
275 int32_t HiviewService::Copy(const std::string& srcFilePath, const std::string& destFilePath) in Copy() argument
277 return CopyFile(srcFilePath, destFilePath); in Copy()
280 int32_t HiviewService::Move(const std::string& srcFilePath, const std::string& destFilePath) in Move() argument
282 int copyResult = CopyFile(srcFilePath, destFilePath); in Move()
287 bool result = FileUtil::RemoveFile(srcFilePath); in Move()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dmemory_collector_impl.cpp588 std::string srcFilePath = GetSnapshotPath("/data/log/faultlog/temp", pidStr); in CollectHprof() local
589 if (srcFilePath.empty()) { in CollectHprof()
590 srcFilePath = GetSnapshotPath("/data/log/reliability/resource_leak/memory_leak", pidStr); in CollectHprof()
591 if (srcFilePath.empty()) { in CollectHprof()
606 if (FileUtil::CopyFile(srcFilePath, savePath) != 0) { in CollectHprof()
607 … 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/
Dprint_cups_client.cpp196 void PrintCupsClient::SymlinkFile(std::string srcFilePath, std::string destFilePath) in SymlinkFile() argument
198 int ret = symlink(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkFile()
223 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in SymlinkDirectory() local
226 stat(srcFilePath.c_str(), &filestat); in SymlinkDirectory()
228 SymlinkDirectory(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkDirectory()
243 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory()
246 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory()
268 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in CopyDirectory() local
271 stat(srcFilePath.c_str(), &filestat); in CopyDirectory()
273 CopyDirectory(srcFilePath.c_str(), destFilePath.c_str()); in CopyDirectory()
[all …]
/base/print/print_fwk/services/print_service/include/
Dprint_cups_client.h108 static void SymlinkFile(std::string srcFilePath, std::string destFilePath);