Home
last modified time | relevance | path

Searched refs:destFilePath (Results 1 - 5 of 5) sorted by relevance

/base/hiviewdfx/hiview/service/
H A Dhiview_service.h41 int32_t Copy(const std::string& srcFilePath, const std::string& destFilePath);
42 int32_t Move(const std::string& srcFilePath, const std::string& destFilePath);
71 int CopyFile(const std::string& srcFilePath, const std::string& destFilePath);
H A Dhiview_service.cpp234 int32_t HiviewService::CopyFile(const std::string& srcFilePath, const std::string& destFilePath) in CopyFile() argument
247 int destFd = open(destFilePath.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IROTH); in CopyFile()
249 HIVIEW_LOGE("failed to open destination file, des=%{public}s", StringUtil::HideSnInfo(destFilePath).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()
291 bool destResult = FileUtil::RemoveFile(destFilePath); in Move()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
H A Dhap_crl_manager_test.cpp40 CopyFileState CopyFile(const std::string& sourceFilePath, const std::string& destFilePath) in CopyFile() argument
48 dest.open(destFilePath.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in CopyFile()
/base/print/print_fwk/services/print_service/src/
H A Dprint_cups_client.cpp261 void PrintCupsClient::SymlinkFile(std::string srcFilePath, std::string destFilePath) in SymlinkFile() argument
263 int ret = symlink(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkFile()
289 std::string destFilePath = std::string(destDir) + "/" + std::string(file->d_name); in SymlinkDirectory() local
293 SymlinkDirectory(srcFilePath.c_str(), destFilePath.c_str()); in SymlinkDirectory()
294 } else if (lstat(destFilePath.c_str(), &destFilestat) == 0) { in SymlinkDirectory()
295 PRINT_HILOGD("symlink lstat %{public}s err: %{public}s", destFilePath.c_str(), strerror(errno)); in SymlinkDirectory()
301 if (std::remove(destFilePath.c_str()) != 0) { in SymlinkDirectory()
303 destFilePath.c_str(), strerror(errno)); in SymlinkDirectory()
308 SymlinkFile(srcFilePath, destFilePath); in SymlinkDirectory()
310 PRINT_HILOGE("symlink lstat %{public}s err: %{public}s", destFilePath in SymlinkDirectory()
334 std::string destFilePath = std::string(destDir) + "/" + std::string(file->d_name); CopyDirectory() local
[all...]
/base/print/print_fwk/services/print_service/include/
H A Dprint_cups_client.h113 static void SymlinkFile(std::string srcFilePath, std::string destFilePath);

Completed in 5 milliseconds