Home
last modified time | relevance | path

Searched refs:newPath (Results 26 - 50 of 87) sorted by relevance

1234

/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dbackup_file_utils.cpp320 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 Dpromises.js702 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 Dinstalld_host_impl.h75 * @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 Dinstalld_operator.h121 * @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 Dinstalld_client.h56 * @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 Dbundle_util.h164 * @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 Dinstalld_proxy.h77 * @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 Dinstalld_interface.h109 * @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 Dmock_installd_host_impl.cpp59 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 Dmock_install_client.cpp67 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 Dupgrade_restore.h37 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 Dbase_restore.h37 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 Dbackup_manager.cpp278 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 Dfs.js1004 * 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 Dringtone_file_utils.cpp404 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 Dmedia_file_utils.h95 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 DFileioJsUnit.test.js3282 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 Dapplication_cleaner.cpp67 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 DTrailingPathOptimizer.java139 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 Danimatable_path.h60 AnimatablePath& operator=(const AnimatablePath& newPath);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmoving_photo_processor.cpp413 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 Dmedialibrary_smartalbum_map_operations.cpp231 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 Dbackup_manager.h51 void CopyFile(const std::string &oldPath, const std::string &newPath, bool isCreate = false);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/
H A Dinstalld_host_impl.cpp256 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 Dinstalld_host.cpp353 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()

Completed in 26 milliseconds

1234