View Issue Details

IDProjectCategoryView StatusLast Update
0011959MMAAction barpublic2015-01-14 20:32
Reporterrusty Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.4 
Target Version1.1.0Fixed in Version1.1.0 
Summary0011959: Track deletion leaves empty folders
DescriptionWhen users delete a file from the MMA library (either manually or via auto-sync), if the only remaining file in the directory is the associated Artwork file or no other files, then MM should delete the entire directory, so that the directory structure is kept clean.
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=21&t=75911
TagsNo tags attached.
Fixed in build365

Activities

martin

2014-03-20 15:09

developer   ~0039927

I can't reproduce, all files and parent directories are deleted for me. We are already deleting parent dirs if contain only files with these extensions:
"jpg", "jpeg", "thm", "bmp", "png", "srt", "sub", "pamp". Can you give me some example when it doesn't work?

rusty

2014-09-19 18:04

administrator   ~0040520

I'm unable to replicate with MM 1.0.5.0301 beta. I've asked the user for additional information.

peke

2014-09-28 01:45

developer   ~0040629

Verified 303

rusty

2014-11-09 00:40

administrator   ~0040938

Tested 1.1.0.335 and when files are deleted in MMA, folders are remaining left behind. Tested 2 cases:
1) deletion of many files during sync operation
2) manual deletion of an MP3 file that had 2 associated .jpg files (one in the same directory, and one in a subdirectory that had been created by the N7 player).

marek

2015-01-08 20:36

developer   ~0041617

We have some conditions when we consider directory as clear and deletable

1. when files in directory have extension "jpg", "jpeg", "thm", "bmp", "png", "srt", "sub", "pamp"

I have added following in build 363:

2. When directory is deleted, also all subdirs are checked whether they contains only files that can be deleted
3. ".nomedia" files is also considered as deletable
4. I have added "cue" extension as also deletable

If you observe this behaviour again, please attach log and structure and content of not deleted dir (all subdirs and files (hidden files too)).

peke

2015-01-09 23:39

developer   ~0041635

Last edited: 2015-01-11 19:33

Can you also add these extensions to deletable: DIZ, NFO, BBS, ION, BAK, TMP, TEMP and any deletable extension that starts with "~", "#" or "_" prefix

marek

2015-01-12 17:38

developer   ~0041652

Fixed in build 364

rusty

2015-01-13 15:58

administrator   ~0041676

Last edited: 2015-01-13 16:18

Tested build 364. This seems to work for internal storage, but not on external storage (including external storage to which MMA has write access).

Note: tested on the SD card of a Galaxy Tab tablet by deleting tracks that had been wi-fi synced to MMA.

Edit: confirmed that this occurs with build 364.

marek

2015-01-14 14:55

developer   ~0041689

Fixed in build 365

Fixed sorting of extensions (jpg artworks were not deleted)
Added new ignored extensions: ini, txt, m3u, url

rusty

2015-01-14 20:32

administrator   ~0041697

Verified 365.