/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | backup_file_utils.cpp | 320 int32_t BackupFileUtils::MoveFile(const string &oldPath, const string &newPath, int32_t sceneCode) in MoveFile() argument 326 } else if (MediaFileUtils::IsFileExists(newPath)) { in MoveFile() 327 MEDIA_ERR_LOG("new path: %{public}s is exists.", GarbleFilePath(newPath, sceneCode).c_str()); in MoveFile() 330 return rename(oldPath.c_str(), newPath.c_str()); in MoveFile() 577 static void addPathSuffix(const string &oldPath, const string &suffix, string &newPath) in addPathSuffix() argument 584 newPath = oldPath + suffix; in addPathSuffix() 585 while (MediaFileUtils::IsFileExists(newPath)) { in addPathSuffix() 586 newPath += ".dup" + suffix; in addPathSuffix()
|
/third_party/node/lib/internal/fs/ |
H A D | promises.js | 702 async function rename(oldPath, newPath) { 704 newPath = getValidatedPath(newPath, 'newPath'); 706 pathModule.toNamespacedPath(newPath), 889 async function link(existingPath, newPath) { 891 newPath = getValidatedPath(newPath, 'newPath'); 893 pathModule.toNamespacedPath(newPath), [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/ |
H A D | installd_host_impl.h | 75 * @param newPath Indicates the new path name. 78 virtual ErrCode RenameModuleDir(const std::string &oldPath, const std::string &newPath) override; 166 virtual ErrCode MoveFile(const std::string &oldPath, const std::string &newPath) override; 168 virtual ErrCode CopyFile(const std::string &oldPath, const std::string &newPath,
|
H A D | installd_operator.h | 121 * @param newPath Indicates the new path name. 124 static bool RenameDir(const std::string &oldPath, const std::string &newPath); 136 * @param newPath Indicates the new path name. 139 static bool RenameFile(const std::string &oldPath, const std::string &newPath);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | installd_client.h | 56 * @param newPath Indicates the new path name. 59 ErrCode RenameModuleDir(const std::string &oldPath, const std::string &newPath); 152 ErrCode MoveFile(const std::string &oldPath, const std::string &newPath); 154 ErrCode CopyFile(const std::string &oldPath, const std::string &newPath,
|
H A D | bundle_util.h | 164 * @brief Rename file from oldPath to newPath. 166 * @param newPath Indicates newPath. 169 static bool RenameFile(const std::string &oldPath, const std::string &newPath); 171 * @brief Copy file from oldPath to newPath. 173 * @param newPath Indicates newPath. 177 const std::string &oldPath, const std::string &newPath);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/ |
H A D | installd_proxy.h | 77 * @param newPath Indicates the new path name. 80 virtual ErrCode RenameModuleDir(const std::string &oldPath, const std::string &newPath) override; 167 virtual ErrCode MoveFile(const std::string &oldPath, const std::string &newPath) override; 169 virtual ErrCode CopyFile(const std::string &oldPath, const std::string &newPath,
|
H A D | installd_interface.h | 109 * @param newPath Indicates the new path name. 251 * @brief Move file from oldPath to newPath. 253 * @param newPath Indicates newPath. 256 virtual ErrCode MoveFile(const std::string &oldPath, const std::string &newPath) in MoveFile() argument 262 * @brief Copy file from oldPath to newPath. 264 * @param newPath Indicates newPath. 267 virtual ErrCode CopyFile(const std::string &oldPath, const std::string &newPath, in CopyFile() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | mock_installd_host_impl.cpp | 59 ErrCode InstalldHostImpl::RenameModuleDir(const std::string &oldPath, const std::string &newPath)
in RenameModuleDir() argument 140 ErrCode InstalldHostImpl::MoveFile(const std::string &oldPath, const std::string &newPath)
in MoveFile() argument 145 ErrCode InstalldHostImpl::CopyFile(const std::string &oldPath, const std::string &newPath,
in CopyFile() argument
|
H A D | mock_install_client.cpp | 67 ErrCode InstalldClient::RenameModuleDir(const std::string &oldPath, const std::string &newPath) in RenameModuleDir() argument 160 ErrCode InstalldClient::MoveFile(const std::string &oldPath, const std::string &newPath) in MoveFile() argument 165 ErrCode InstalldClient::CopyFile(const std::string &oldPath, const std::string &newPath, in CopyFile() argument
|
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/ |
H A D | upgrade_restore.h | 37 NativeRdb::ValuesBucket GetInsertValue(const FileInfo &fileInfo, const std::string &newPath, 66 bool ConvertPathToRealPath(const std::string &srcPath, const std::string &prefix, std::string &newPath, 79 bool ConvertPathToRealPath(const std::string &srcPath, const std::string &prefix, std::string &newPath,
|
H A D | base_restore.h | 37 virtual NativeRdb::ValuesBucket GetInsertValue(const FileInfo &fileInfo, const std::string &newPath, 58 virtual bool ConvertPathToRealPath(const std::string &srcPath, const std::string &prefix, std::string &newPath,
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/ |
H A D | backup_manager.cpp | 278 void BackupManager::CopyFile(const std::string &oldPath, const std::string &newPath, bool isCreate) in CopyFile() argument 286 fout.open(newPath, std::ios_base::out | std::ios_base::ate); in CopyFile() 288 fout.open(newPath, std::ios_base::out | std::ios_base::trunc); in CopyFile()
|
/third_party/node/lib/ |
H A D | fs.js | 1004 * the pathname provided as `newPath`. 1006 * @param {string | Buffer | URL} newPath 1010 function rename(oldPath, newPath, callback) { 1013 newPath = getValidatedPath(newPath, 'newPath'); 1017 pathModule.toNamespacedPath(newPath), 1024 * the pathname provided as `newPath`. 1026 * @param {string | Buffer | URL} newPath 1029 function renameSync(oldPath, newPath) { [all...] |
/foundation/multimedia/ringtone_library/services/utils/src/ |
H A D | ringtone_file_utils.cpp | 404 bool RingtoneFileUtils::MoveFile(const string &oldPath, const string &newPath) in MoveFile() argument 408 if (IsFileExists(oldPath) && !IsFileExists(newPath)) { in MoveFile() 409 errRet = (rename(oldPath.c_str(), newPath.c_str()) == 0); in MoveFile() 415 bool RingtoneFileUtils::CopyFileUtil(const string &filePath, const string &newPath) in CopyFileUtil() argument 441 int32_t dest = open(newPath.c_str(), O_WRONLY | O_CREAT, MODE_RW_USR); in CopyFileUtil()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/include/ |
H A D | media_file_utils.h | 95 EXPORT static bool MoveFile(const std::string &oldPath, const std::string &newPath); 99 EXPORT static bool CopyFileUtil(const std::string &filePath, const std::string &newPath); 103 EXPORT static bool RenameDir(const std::string &oldPath, const std::string &newPath); 126 EXPORT static int32_t ModifyAsset(const std::string &oldPath, const std::string &newPath);
|
/test/xts/dcts/filemanagement/fileio/client/src/main/js/test/ |
H A D | FileioJsUnit.test.js | 3282 let newPath = fpath + "_rename";
3283 console.info('------------ test_fileio_rename_file_sync_000 : newPath = ' + newPath);
3284 fileio.renameSync(fpath, newPath);
3287 fileio.accessSync(newPath, 0);
3296 await getServerFileInfo(tcNumber, newPath, CODE_CREATE_FILE, done, function (serverFileRename) {
3302 fileio.unlinkSync(newPath);
3332 let newPath = dpath + "_rename";
3333 console.info('------------ test_fileio_rename_dir_sync_000 : newPath = ' + newPath);
[all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | application_cleaner.cpp | 67 auto newPath = path + MARK_SYMBOL + stream.str(); in RenameTempData() local 68 if (rename(path.c_str(), newPath.c_str()) != 0) { in RenameTempData()
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/regex/ |
H A D | TrailingPathOptimizer.java | 139 AnyPath newPath = path.extend(canTerminate(source, g)); in recursivelyDetachTrailingPaths() 142 boolean keepSourceNode = recursivelyDetachTrailingPaths(source, newPath, g, anyPaths); in recursivelyDetachTrailingPaths()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | animatable_path.h | 60 AnimatablePath& operator=(const AnimatablePath& newPath);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | moving_photo_processor.cpp | 413 static void addCompatPathSuffix(const string &oldPath, const string &suffix, string &newPath) in addCompatPathSuffix() argument 420 newPath = oldPath + ".compat" + suffix; in addCompatPathSuffix() 421 while (MediaFileUtils::IsFileExists(newPath)) { in addCompatPathSuffix() 422 newPath += ".dup" + suffix; in addCompatPathSuffix()
|
H A D | medialibrary_smartalbum_map_operations.cpp | 231 string newPath = newRelPath; in GetNewPath() local 233 newPath = ROOT_MEDIA_DIR + newPath; in GetNewPath() 235 newPath += path.substr(path.find(srcRelPath) + srcRelPath.length()); in GetNewPath() 236 return newPath; in GetNewPath()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/include/ |
H A D | backup_manager.h | 51 void CopyFile(const std::string &oldPath, const std::string &newPath, bool isCreate = false);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_host_impl.cpp | 256 ErrCode InstalldHostImpl::RenameModuleDir(const std::string &oldPath, const std::string &newPath) in RenameModuleDir() argument 258 LOG_D(BMS_TAG_INSTALLD, "rename %{public}s to %{public}s", oldPath.c_str(), newPath.c_str()); in RenameModuleDir() 263 if (oldPath.empty() || newPath.empty()) { in RenameModuleDir() 267 if (!InstalldOperator::RenameDir(oldPath, newPath)) { in RenameModuleDir() 269 oldPath.c_str(), newPath.c_str(), errno); in RenameModuleDir() 1049 ErrCode InstalldHostImpl::MoveFile(const std::string &oldPath, const std::string &newPath) in MoveFile() argument 1055 if (!InstalldOperator::MoveFile(oldPath, newPath)) { in MoveFile() 1057 oldPath.c_str(), newPath.c_str(), errno); in MoveFile() 1063 ErrCode InstalldHostImpl::CopyFile(const std::string &oldPath, const std::string &newPath, in CopyFile() argument 1070 if (!InstalldOperator::CopyFileFast(oldPath, newPath)) { in CopyFile() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/ |
H A D | installd_host.cpp | 353 std::string newPath = Str16ToStr8(data.ReadString16()); in HandleRenameModuleDir() local 354 ErrCode result = RenameModuleDir(oldPath, newPath); in HandleRenameModuleDir() 531 std::string newPath = Str16ToStr8(data.ReadString16()); in HandleMoveFile() local 532 ErrCode result = MoveFile(oldPath, newPath); in HandleMoveFile() 540 std::string newPath = Str16ToStr8(data.ReadString16()); in HandleCopyFile() local 543 ErrCode result = CopyFile(oldPath, newPath, signatureFilePath); in HandleCopyFile()
|