/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_file_list.c | 502 int32_t FileListRenameFile(FileList *fileList, uint16_t fileId, const char *newFileName) in FileListRenameFile() argument 504 if (fileList == NULL || fileId == 0 || fileId > fileList->num || newFileName == NULL || in FileListRenameFile() 505 strlen(newFileName) == 0 || strlen(newFileName) >= NSTACKX_MAX_REMOTE_PATH_LEN) { in FileListRenameFile() 508 if (strcpy_s(fileList->list[fileId - 1].fileName, NSTACKX_MAX_REMOTE_PATH_LEN, newFileName) != EOK) { in FileListRenameFile()
|
H A D | nstackx_dfile_transfer.c | 1160 if (strlen(renamePara.newFileName) == 0 || strlen(renamePara.newFileName) + 1 > NSTACKX_MAX_REMOTE_PATH_LEN) { in RenameFileIfExisting() 1164 if (GetFileNameLen(renamePara.newFileName) > NSTACKX_MAX_FILE_NAME_LEN) { in RenameFileIfExisting() 1165 DFILE_LOGE(TAG, "transId %u rename file %s failed newFileName too long", dFileTrans->transId, fileName); in RenameFileIfExisting() 1168 if (FileListRenameFile(dFileTrans->fileList, i + 1, renamePara.newFileName) != NSTACKX_EOK) { in RenameFileIfExisting()
|
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
H A D | clouddisk_rdbstore_mock.cpp | 184 const std::string &newParentCloudId, const std::string &newFileName) in Rename() 186 if (oldFileName == "mock" || newFileName == "mock") { in Rename() 183 Rename(const std::string &oldParentCloudId, const std::string &oldFileName, const std::string &newParentCloudId, const std::string &newFileName) Rename() argument
|
/foundation/filemanagement/dfs_service/services/clouddisk_database/src/ |
H A D | clouddisk_rdbstore.cpp | 1065 static void FileRename(ValuesBucket &values, const int32_t &position, const std::string &newFileName) in FileRename() argument 1067 values.PutString(FileColumn::FILE_NAME, newFileName); in FileRename() 1069 FillFileType(newFileName, values); in FileRename() 1087 const std::string &newFileName) in FileMoveAndRename() 1090 values.PutString(FileColumn::FILE_NAME, newFileName); in FileMoveAndRename() 1092 FillFileType(newFileName, values); in FileMoveAndRename() 1105 string newFileName = newNode.fileName; in HandleRenameValue() local 1107 if (oldFileName != newFileName && oldParentCloudId == newParentCloudId) { in HandleRenameValue() 1108 FileRename(rename, position, newFileName); in HandleRenameValue() 1110 if (oldFileName == newFileName in HandleRenameValue() 1086 FileMoveAndRename(ValuesBucket &values, const int32_t &position, const std::string &newParentCloudId, const std::string &newFileName) FileMoveAndRename() argument 1118 Rename(const std::string &oldParentCloudId, const std::string &oldFileName, const std::string &newParentCloudId, const std::string &newFileName) Rename() argument [all...] |
/foundation/communication/dsoftbus/interfaces/kits/transport/ |
H A D | trans_type.h | 296 char newFileName[MAX_PATH_LEN]; /**< New file name */ member
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_daemon_handler.cpp | 229 std::string newFileName = std::string(newFile) + PATH_SEPARATOR + ent->d_name; in MoveFile() local 230 if (!BundleFileUtils::RenameFile(oldFileName.c_str(), newFileName.c_str())) { in MoveFile()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | database_oper.cpp | 42 std::string newFileName; in ExecuteRekey() local 43 errCode = CreateStatusCtrlFile(property, ctrlFileName, newFileName); in ExecuteRekey() 56 errCode = RenameStatusCtrlFile(ctrlFileName, newFileName); in ExecuteRekey()
|
/foundation/filemanagement/dfs_service/services/clouddisk_database/include/ |
H A D | clouddisk_rdbstore.h | 57 const std::string &newParentCloudId, const std::string &newFileName);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/ |
H A D | nstackx_file_list.h | 202 int32_t FileListRenameFile(FileList *fileList, uint16_t fileId, const char *newFileName);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/interface/ |
H A D | nstackx_dfile.h | 176 char newFileName[NSTACKX_MAX_REMOTE_PATH_LEN]; member
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_adapter_impl.cpp | 534 std::string newFileName = fileName; in GetRawfile() local 536 newFileName = std::string(fileName.begin(), it); in GetRawfile() 539 auto state = manager->GetRawFilePathByName(newFileName, outPath); in GetRawfile()
|
H A D | resource_adapter_impl_v2.cpp | 649 std::string newFileName = fileName; in GetRawfile() local 651 newFileName = std::string(fileName.begin(), it); in GetRawfile() 654 auto state = manager->GetRawFilePathByName(newFileName, outPath); in GetRawfile()
|
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/ |
H A D | clouddisk_rdbstore_test.cpp | 1777 const std::string newFileName = ""; in HWTEST_F() local 1780 int32_t ret = clouddiskrdbStore_->Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName); in HWTEST_F() 1795 const std::string newFileName = "test"; in HWTEST_F() local 1798 int32_t ret = clouddiskrdbStore_->Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName); in HWTEST_F() 1813 const std::string newFileName = " test"; in HWTEST_F() local 1816 int32_t ret = clouddiskrdbStore_->Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName); in HWTEST_F() 1831 const std::string newFileName = " test"; in HWTEST_F() local 1834 int32_t ret = clouddiskrdbStore_->Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName); in HWTEST_F() 1849 const std::string newFileName = "mock"; in HWTEST_F() local 1852 int32_t ret = clouddiskrdbStore_->Rename(oldParentCloudId, oldFileName, newParentCloudId, newFileName); in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | client_trans_file.c | 465 (void)strcpy_s(renamePara->newFileName, NSTACKX_MAX_REMOTE_PATH_LEN, renamePara->initFileName); in RenameHook()
|