/ohos5.0/base/hiviewdfx/hiview/service/ |
H A 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); 71 int CopyFile(const std::string& srcFilePath, const std::string& destFilePath);
|
H A 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()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_object_test/src/ |
H A D | medialibrary_object_test.cpp | 130 string srcFilePath = ""; variable 134 srcFilePath = "/storage/cloud/files"; 136 ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath); 146 ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath); 153 string srcFilePath = ""; variable 155 int32_t ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath); 158 ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath); 160 srcFilePath = "/storage/cloud/files/medialib_GetDirAsset_test_001"; 162 ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath); 164 srcFilePath = "//data/test"; [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_wpa_proxy_test.cpp | 66 const char *srcFilePath; variable 68 WifiErrorNo result = CopyUserFile(srcFilePath, destFilePath); 72 result = CopyUserFile(srcFilePath, nullptr);
|
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
H A D | ringtone_restore_base.cpp | 298 std::string srcFilePath = dirEntry.path(); in MoveDirectory() local 299 std::string tmpFilePath = srcFilePath; in MoveDirectory() 301 if (!MoveFile(srcFilePath, dstFilePath)) { in MoveDirectory() 302 … RINGTONE_ERR_LOG("Move file from %{private}s to %{private}s failed", srcFilePath.c_str(), in MoveDirectory()
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A 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()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_wpa_proxy.c | 511 WifiErrorNo CopyUserFile(const char *srcFilePath, const char* destFilePath) in CopyUserFile() argument 514 if (srcFilePath == NULL || destFilePath == NULL) { in CopyUserFile() 521 if ((srcFd = open(srcFilePath, O_RDONLY)) < 0) { in CopyUserFile() 522 LOGE("CopyUserFile() failed, open srcFilePath:%{public}s error!", srcFilePath); in CopyUserFile() 537 LOGE("CopyUserFile() failed, read srcFilePath:%{public}s error!", srcFilePath); in CopyUserFile()
|
H A D | wifi_hdi_wpa_proxy.h | 123 WifiErrorNo CopyUserFile(const char *srcFilePath, const char* destFilePath);
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | util.cpp | 195 bool ReadZipFile(const std::string& srcFilePath, ImageStructVec& imgVec, FrameRateConfig& frameConf… in ReadZipFile() argument 197 unzFile zipFile = unzOpen2(srcFilePath.c_str(), nullptr); in ReadZipFile() 199 LOGE("Open zipFile fail: %{public}s", srcFilePath.c_str()); in ReadZipFile()
|
/ohos5.0/base/print/print_fwk/services/print_service/src/ |
H A 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 …]
|
/ohos5.0/foundation/multimedia/ringtone_library/services/utils/src/ |
H A D | ringtone_file_utils.cpp | 605 std::string srcFilePath = dirEntry.path(); in MoveDirectory() local 606 std::string tmpFilePath = srcFilePath; in MoveDirectory() 608 if (!MoveFile(srcFilePath, dstFilePath)) { in MoveDirectory()
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/include/ |
H A D | util.h | 149 bool ReadZipFile(const std::string& srcFilePath, ImageStructVec& imgVec, FrameRateConfig& frameConf…
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | base_restore.cpp | 649 std::string srcFilePath = dirEntry.path(); in MoveDirectory() local 650 std::string tmpFilePath = srcFilePath; in MoveDirectory() 654 opRet = this->MoveFile(srcFilePath, dstFilePath); in MoveDirectory() 656 opRet = this->CopyFile(srcFilePath, dstFilePath); in MoveDirectory() 660 BackupFileUtils::GarbleFilePath(srcFilePath, sceneCode_).c_str(), in MoveDirectory()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_album_fusion_utils.cpp | 365 std::string srcFilePath = dirEntry.path(); in CopyDirectory() local 366 std::string tmpFilePath = srcFilePath; in CopyDirectory() 368 … if (!MediaFileUtils::IsFileExists(srcFilePath) || !MediaFileUtils::IsFileValid(srcFilePath)) { in CopyDirectory() 369 …ERR_LOG("Copy file from %{public}s failed , because of thumbnail is invalid", srcFilePath.c_str()); in CopyDirectory() 371 if (!MediaFileUtils::CopyFileUtil(srcFilePath, dstFilePath)) { in CopyDirectory() 373 srcFilePath.c_str(), dstFilePath.c_str()); in CopyDirectory()
|
H A D | medialibrary_object_utils.cpp | 638 const string &srcFilePath, const string &dstFilePath) in RenameFileObj() argument 640 if (srcFilePath.empty() || dstFilePath.empty()) { in RenameFileObj() 644 if (srcFilePath.compare(dstFilePath) == 0) { in RenameFileObj() 661 errCode = MediaFileUtils::ModifyAsset(srcFilePath, dstFilePath); in RenameFileObj() 671 (ProcessHiddenFile(dstFileName, srcFilePath) == E_SUCCESS)) { in RenameFileObj() 680 string srcAlbumPath = MediaFileUtils::GetParentPath(srcFilePath); in RenameFileObj()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_object_utils.h | 50 EXPORT static int32_t RenameFileObj(MediaLibraryCommand &cmd, const std::string &srcFilePath,
|
/ohos5.0/base/print/print_fwk/services/print_service/include/ |
H A D | print_cups_client.h | 117 static void SymlinkFile(std::string &srcFilePath, std::string &destFilePath);
|
/ohos5.0/base/print/print_fwk/test/unittest/fwk_print_cups_client_test/ |
H A 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);
|
/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-c-cpp-secure-coding-guide.md | 1914 bool WriteDataToFile(const std::string& dstFilePath, const std::string& srcFilePath) 1919 std::ifstream srcFile(srcFilePath, std::ios::binary);
|
/ohos5.0/docs/en/contribute/ |
H A D | OpenHarmony-c-cpp-secure-coding-guide.md | 1974 bool WriteDataToFile(const std::string& dstFilePath, const std::string& srcFilePath) 1979 std::ifstream srcFile(srcFilePath, std::ios::binary);
|