View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019103 | MMW 5 | Extensions framework | public | 2022-05-21 15:04 | 2022-09-16 22:10 |
Reporter | zvezdan | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | reopened | ||
Target Version | 5.0.4 | Fixed in Version | 5.0.4 | ||
Summary | 0019103: renameFiles method should support moving any file or a list of any files, not only media files | ||||
Description | The 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." | ||||
Tags | No tags attached. | ||||
Fixed in build | 2663 | ||||
|
Feel free to use renameFileAsync : https://www.mediamonkey.com/docs/api/classes/Filesystem.html#method_renameFileAsync |
|
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? |
|
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. |
|
Added in 5.0.4.2663 https://www.mediamonkey.com/docs/api/classes/Filesystem.html#method_renameFilesAsync |
|
Verified 2663 Updated link to API also. |