View Issue Details

IDProjectCategoryView StatusLast Update
0019103MMW 5Extensions frameworkpublic2022-09-16 22:10
Reporterzvezdan Assigned To 
PriorityurgentSeverityminorReproducibilityN/A
Status closedResolutionreopened 
Target Version5.0.4Fixed in Version5.0.4 
Summary0019103: renameFiles method should support moving any file or a list of any files, not only media files
DescriptionThe renameFiles method should support moving of any file(s), not only media files in a tracklist.

When trying to copy a file by specifying its path as the first argument, the program freezes with:
"Invalid class typecast."
TagsNo tags attached.
Fixed in build2663

Activities

Ludek

2022-05-27 15:19

developer   ~0068295

Feel free to use renameFileAsync : https://www.mediamonkey.com/docs/api/classes/Filesystem.html#method_renameFileAsync

zvezdan

2022-05-27 15:50

updater   ~0068296

Sure, I am already using it, but renameFiles allows bulk moving of files and it has the additional parameters as canRemoveEmptyFolders. I know you will say that I could use deleteFolderAsync with its third argument if I want to delete only folders that are empty, but it is not the same.

How is that you don't have Async variant of that command?

Ludek

2022-09-13 22:16

developer   ~0069250

Last edited: 2022-09-13 22:17

OK, seems that renaming it to
renameFilesAsync
+ add acceptance of non-media files as well as expanding the first parameter to be either StringList or Tacklist makes sense.

Ludek

2022-09-14 15:23

developer   ~0069265

Last edited: 2022-09-16 22:10

Added in 5.0.4.2663

https://www.mediamonkey.com/docs/api/classes/Filesystem.html#method_renameFilesAsync

peke

2022-09-16 22:10

developer   ~0069341

Verified 2663

Updated link to API also.