View Issue Details

IDProjectCategoryView StatusLast Update
0019157MMW 5Extensions frameworkpublic2022-08-15 11:16
Reporterzvezdan Assigned To 
PriorityhighSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version5.0.4Fixed in Version5.0.4 
Summary0019157: Problems with deleteFolderAsync method
Description1. deleteFolderAsync method should not remove records from the Songs table, even if they have SongPath with removed folder. At least add one new argument that could prevent that.

2. deleteFolderAsync method should not remove folders having non-media files if onlyEmpty argument is true. At least add one new argument that will determine which folders could be removed ("only if the folder has no other non-media content" or "only if completely empty").
TagsNo tags attached.
Fixed in build2658

Relationships

related to 0019156 closedLudek Changes made with executeQueryAsync are not reflected in the program 

Activities

Ludek

2022-07-21 11:45

developer   ~0068864

Last edited: 2022-07-21 11:45

1. OK, added dontDeleteFromDB optional param for the next 5.0.4 build
image.png (22,866 bytes)   
image.png (22,866 bytes)   

Ludek

2022-07-21 11:45

developer   ~0068865

2. I checked the code and if onlyEmpty is TRUE then MM5 isn't deleting the folder at all in case there is a subfolder (or a non-media file).
Could you please share example folder than MM5 deletes although it shouldn't (when onlyEmpty is TRUE) so that I can replicate and fix ?

zvezdan

2022-07-21 12:07

updater   ~0068866

2. I cannot reproduce it, even with the version that was actual when I posted the issue. Sorry, I suppose I did something wrong.

By the way, your API description is complicated and somewhat confusing. You should just say: "Only if the folder is empty" or more specifically "Only if the folder has no files and sub-folders" without mentioning any "other" or "non-media" or "content".

Ludek

2022-08-15 11:16

developer   ~0069006

"Only if the folder has no files and sub-folders" without mentioning "non-media content" does not make sense --> as this method just deletes the folder so how could the folder became non-empty after deletion?

The point here is that MediaMonkey deletes only the media content by default (music, video, artwork) and the onlyEmpty argument preserves the non-media files.