Home
last modified time | relevance | path

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

/base/hiviewdfx/hiview/service/
Dhiview_service.h37 int32_t Copy(const std::string& srcFilePath, const std::string& destFilePath);
38 int32_t Move(const std::string& srcFilePath, const std::string& destFilePath);
63 int CopyFile(const std::string& srcFilePath, const std::string& destFilePath);
Dhiview_service.cpp226 int32_t HiviewService::CopyFile(const std::string& srcFilePath, const std::string& destFilePath) in CopyFile() argument
228 int srcFd = open(srcFilePath.c_str(), O_RDONLY); in CopyFile()
230 HIVIEW_LOGE("failed to open source file, src=%{public}s", srcFilePath.c_str()); in CopyFile()
268 int32_t HiviewService::Copy(const std::string& srcFilePath, const std::string& destFilePath) in Copy() argument
270 return CopyFile(srcFilePath, destFilePath); in Copy()
273 int32_t HiviewService::Move(const std::string& srcFilePath, const std::string& destFilePath) in Move() argument
275 int copyResult = CopyFile(srcFilePath, destFilePath); in Move()
280 bool result = FileUtil::RemoveFile(srcFilePath); in Move()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dmemory_collector_impl.cpp518 std::string srcFilePath = GetSnapshotPath("/data/log/faultlog/temp", pidStr); in CollectHprof() local
519 if (srcFilePath.empty()) { in CollectHprof()
520 srcFilePath = GetSnapshotPath("/data/log/reliability/resource_leak/memory_leak", pidStr); in CollectHprof()
521 if (srcFilePath.empty()) { in CollectHprof()
536 if (FileUtil::CopyFile(srcFilePath, savePath) != 0) { in CollectHprof()
537 … 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.cpp178 std::string srcFilePath = std::string(srcDir) + "/" + std::string(file->d_name); in CopyDirectory() local
181 stat(srcFilePath.c_str(), &filestat); in CopyDirectory()
183 CopyDirectory(srcFilePath.c_str(), destFilePath.c_str()); in CopyDirectory()
187 if (realpath(srcFilePath.c_str(), realSrc) == nullptr) { in CopyDirectory()