Home
last modified time | relevance | path

Searched refs:rename (Results 1 - 25 of 47) sorted by relevance

12

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Drename.cpp16 #include "rename.h"
51 if (rename(src.get(), dest.get()) == -1) { in Sync()
80 int ret = rename(opath.c_str(), npath.c_str()); in Async()
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp80 ret = rename(filePathTemp.c_str(), filePath.c_str()); in SaveImage()
82 MEDIA_ERR_LOG("rename fail, ret: %{public}d, errno: %{public}d", ret, errno); in SaveImage()
178 ret = rename(tempOutputPath.c_str(), path.c_str()); in DealPicture()
204 MEDIA_INFO_LOG("video rename targetPath: %{public}s, tempPath: %{public}s", targetPath.c_str(), tempPath.c_str()); in SaveVideo()
205 return rename(tempPath.c_str(), targetPath.c_str()); in SaveVideo()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dstd_filesystem.cpp165 std::filesystem::rename(U8Path(pathFrom), U8Path(pathTo), ec); in Rename()
168 return std::rename(pathFrom.c_str(), pathTo.c_str()) == 0; in Rename()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Dlocal_database_oper.cpp165 int innerCode = rename(info.curValidFile.c_str(), info.backValidFile.c_str()); in BackupCurrentDatabase()
167 LOGE("Failed to rename the file after the backup:%d", errno); in BackupCurrentDatabase()
201 // rename the flag file. in ImportUnpackedDatabase()
202 int innerCode = rename(info.backValidFile.c_str(), info.curValidFile.c_str()); in ImportUnpackedDatabase()
204 LOGE("Failed to rename after the import operation:%d", errno); in ImportUnpackedDatabase()
H A Dmulti_ver_database_oper.cpp107 // rm old dir -> rename backup dir to prime dir -> rm ctrl file in CloseStorages()
213 int innerCode = rename(info.curValidFile.c_str(), info.backValidFile.c_str()); in BackupCurrentDatabase()
215 LOGE("Failed to rename the file after the backup:%d", errno); in BackupCurrentDatabase()
245 // rename the flag file. in ImportUnpackedDatabase()
246 int innerCode = rename(info.backValidFile.c_str(), info.curValidFile.c_str()); in ImportUnpackedDatabase()
248 LOGE("Failed to rename after the import operation:%d", errno); in ImportUnpackedDatabase()
H A Ddatabase_oper.cpp59 LOGE("ExecuteRekey rename status ctrl failed! errCode = [%d]", errCode); in ExecuteRekey()
128 // rm prime dir -> rename backup dir to prime dir -> rm ctrl file in RekeyRecover()
137 // rename backup dir to prime dir -> rm ctrl file in RekeyRecover()
138 if (rename(backupDir.c_str(), currentDir.c_str()) != E_OK) { in RekeyRecover()
314 int errCode = rename(orgCtrlFile.c_str(), newCtrlFile.c_str()); in RenameStatusCtrlFile()
470 if (rename(backupDir.c_str(), dir.c_str()) != E_OK) { in RecoverImportedBackFiles()
H A Dsingle_ver_database_oper.cpp302 // rename in BackupCurrentDatabase()
303 int innerCode = rename(info.curValidFile.c_str(), info.backValidFile.c_str()); in BackupCurrentDatabase()
305 LOGE("Failed to rename the file after the backup:%d", errno); in BackupCurrentDatabase()
415 // rename the flag file. in ImportUnpackedDatabase()
416 int innerCode = rename(info.backValidFile.c_str(), info.curValidFile.c_str()); in ImportUnpackedDatabase()
418 LOGE("Failed to rename after the import operation:%d", errno); in ImportUnpackedDatabase()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_asset_recv_listener.cpp199 std::filesystem::rename(oldPath.c_str(), newPath.c_str()); in MoveAsset()
201 LOGE("rename file fail, file name is %{public}s", e.what()); in MoveAsset()
217 std::filesystem::rename(oldPath.c_str(), newPath.c_str()); in MoveAsset()
219 LOGE("rename file fail, file name is %{public}s", e.what()); in MoveAsset()
276 std::filesystem::rename(filePath.c_str(), zipfilePath.c_str()); in HandleZipFile()
278 LOGE("rename file fail, file name is %{public}s", e.what()); in HandleZipFile()
/foundation/arkui/ace_engine_lite/frameworks/common/memory/
H A Dmem_proc.cpp65 rename(MEM_LOG_FILE_PATH, fullPath); in ClearUp()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_file_utils.cpp144 return rename(oldFile, newFile) == 0; in RenameFile()
/foundation/multimodalinput/input/service/event_dump/src/
H A Devent_statistic.cpp122 if (rename(EVENT_FILE_NAME.c_str(), EVENT_FILE_NAME_HISTORY.c_str()) != FUNC_EXE_OK) { in WriteEventFile()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmoving_photo_processor.cpp440 int32_t ret = rename(compatExtraDataPath.c_str(), movingPhotoExtraDataPath.c_str()); in MoveMovingPhoto()
442 MEDIA_ERR_LOG("Failed to rename extraData, src: %{public}s, dest: %{public}s, errno: %{public}d", in MoveMovingPhoto()
446 ret = rename(compatVideoPath.c_str(), movingPhotoVideoPath.c_str()); in MoveMovingPhoto()
448 MEDIA_ERR_LOG("Failed to rename video, src: %{public}s, dest: %{public}s, errno: %{public}d", in MoveMovingPhoto()
452 ret = rename(compatImagePath.c_str(), path.c_str()); in MoveMovingPhoto()
454 MEDIA_ERR_LOG("Failed to rename image, src: %{public}s, dest: %{public}s, errno: %{public}d", in MoveMovingPhoto()
H A Dhi_audit.cpp194 std::rename(HIAUDIT_LOG_NAME.c_str(), (zipFileName + ".csv").c_str()); in ZipAuditLog()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dbase_key.cpp207 // rename keypath/temp/ to keypath/version_xx/ in StoreKey()
209 LOGI("rename %{public}s to %{public}s", pathTemp.c_str(), candidate.c_str()); in StoreKey()
210 if (rename(pathTemp.c_str(), candidate.c_str()) == 0) { in StoreKey()
216 LOGE("rename fail return %{public}d, cleanup the temp dir", errno); in StoreKey()
378 if (rename(pathLatest.c_str(), in StoreKey()
385 // rename {candidate} to latest in StoreKey()
387 if (rename(candidate.c_str(), pathLatest.c_str()) != 0) { in StoreKey()
388 LOGE("rename candidate to latest fail return %{public}d", errno); in StoreKey()
391 if (rename(pathLatestBak.c_str(), in StoreKey()
401 LOGI("rename candidat in StoreKey()
[all...]
/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_xml_utils.cpp99 if (std::rename(backupFileName.c_str(), fileName.c_str())) { in RenameFromBackupFile()
111 if (std::rename(fileName.c_str(), name.c_str())) { in RenameFile()
112 LOG_ERROR("failed to rename file to %{public}s file %{public}d.", fileType.c_str(), errno); in RenameFile()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dmovedir.cpp143 filesystem::rename(srcPath, dstPath, errCode); in RenameFile()
145 HILOGD("Failed to rename file due to EXDEV"); in RenameFile()
170 filesystem::rename(srcPath, destPath, errCode); in RenameDir()
172 HILOGD("Failed to rename file due to EXDEV"); in RenameDir()
180 HILOGE("Failed to rename file, error code: %{public}d", errCode.value()); in RenameDir()
242 HILOGE("Failed to rename file for error %{public}d", res); in RecurMoveDir()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dapplication_cleaner.cpp68 if (rename(path.c_str(), newPath.c_str()) != 0) { in RenameTempData()
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dhi_audit.cpp200 std::rename(HIAUDIT_LOG_NAME.c_str(), (zipFileName + ".csv").c_str()); in ZipAuditLog()
/foundation/filemanagement/app_file_service/utils/src/b_hiaudit/
H A Dhi_audit.cpp210 std::rename(logFilePath.c_str(), (zipFileName + ".csv").c_str()); in ZipAuditLog()
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_file.cpp189 if (rename(oldPath.c_str(), newPath.c_str()) != 0) { in MoveFile()
190 HILOGI("rename err,try copy errno: %{public}d", errno); in MoveFile()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_snoop.c230 rename(g_outputPath, bakPath); in BtmPrepareSnoopFile()
/foundation/filemanagement/dfs_service/services/clouddisk_database/src/
H A Dclouddisk_rdbstore.cpp1099 static void HandleRenameValue(ValuesBucket &rename, int32_t position, const CacheNode &oldNode, in HandleRenameValue() argument
1106 rename.PutLong(FileColumn::META_TIME_EDITED, UTCTimeMilliSeconds()); in HandleRenameValue()
1108 FileRename(rename, position, newFileName); in HandleRenameValue()
1111 FileMove(rename, position, newParentCloudId); in HandleRenameValue()
1114 FileMoveAndRename(rename, position, newParentCloudId, newFileName); in HandleRenameValue()
1127 LOGE("rename parameters is invalid"); in Rename()
1141 ValuesBucket rename; in Rename() local
1144 HandleRenameValue(rename, metaBase.position, oldNode, newNode); in Rename()
1150 LOGE("rename dentry failed, ret = %{public}d", ret); in Rename()
1153 function<void()> rdbUpdate = [this, rename, bindArg in Rename()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_utils.cpp562 errRet = (rename(oldPath.c_str(), newPath.c_str()) == E_SUCCESS); in MoveFile()
779 errRet = (rename(oldPath.c_str(), newPath.c_str()) == E_SUCCESS); in RenameDir()
1271 err = rename(oldPath.c_str(), newPath.c_str());
1274 MEDIA_ERR_LOG("Failed rename, errno: %{public}d, old path: %{public}s exists: %{public}d, "
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dplatform_specific.cpp62 int errCode = rename(oldFilePath.c_str(), newFilePath.c_str()); in RenameFilePath()
385 int errCode = rename(oldFilePath.c_str(), newFilePath.c_str());
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/
H A Dmpeg_manager.cpp90 int ret = rename(outPath_.c_str(), tempPath_.c_str()); in ~MpegManager()
92 DP_ERR_LOG("rename %{public}s to %{public}s failde, ret: %{public}d", in ~MpegManager()
95 DP_INFO_LOG("rename %{public}s to %{public}s success.", outPath_.c_str(), tempPath_.c_str()); in ~MpegManager()

Completed in 19 milliseconds

12