Home
last modified time | relevance | path

Searched refs:dstFilePath (Results 1 – 4 of 4) sorted by relevance

/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_object_test/src/
Dmedialibrary_object_test.cpp129 string dstFilePath = ""; variable
130 int32_t ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath);
133 dstFilePath = "/storage/cloud/files";
134 ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath);
136 dstFilePath = "RenameFileObj.test/media";
144 ret = MediaLibraryObjectUtils::RenameFileObj(cmd, srcFilePath, dstFilePath);
152 string dstFilePath = ""; variable
153 int32_t ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath);
157 ret = MediaLibraryObjectUtils::RenameDirObj(cmd, srcFilePath, dstFilePath);
160 dstFilePath = "/storage/cloud/files";
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
Dmedialibrary_file_operations.cpp164 string dstFilePath = ROOT_MEDIA_DIR + dstReFilePath + dstFileName; in ModifyFileOperation() local
166 if (srcPath.compare(dstFilePath) == 0) { in ModifyFileOperation()
169 return MediaLibraryObjectUtils::RenameFileObj(cmd, srcPath, dstFilePath); in ModifyFileOperation()
Dmedialibrary_object_utils.cpp631 const string &srcFilePath, const string &dstFilePath) in RenameFileObj() argument
633 if (srcFilePath.empty() || dstFilePath.empty()) { in RenameFileObj()
637 if (srcFilePath.compare(dstFilePath) == 0) { in RenameFileObj()
641 auto errCode = CheckDirExtension(dstFilePath); in RenameFileObj()
647 string dstAlbumPath = MediaFileUtils::GetParentPath(dstFilePath); in RenameFileObj()
654 errCode = MediaFileUtils::ModifyAsset(srcFilePath, dstFilePath); in RenameFileObj()
662 string dstFileName = MediaFileUtils::GetFileName(dstFilePath); in RenameFileObj()
670 auto ret = UpdateFileInfoInDb(cmd, dstFilePath, dirAsset.GetAlbumId(), dirAsset.GetAlbumName()); in RenameFileObj()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
Dmedialibrary_object_utils.h51 const std::string &dstFilePath);