How to delete empty folders after import? #4852
-
When i import using the "move" option, beets leaves behind a lot of empty folders. Is there a way to clean that up using beets? Or is there a useful script to do so? Thank for your help, Stefan |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Are you on Windows or Linux? For Windows, you could try one of the answers from this Super User question: https://superuser.com/questions/39674/recursively-delete-empty-directories-in-windows For Linux, you could try To run these automatically, take a look at the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply! |
Beta Was this translation helpful? Give feedback.
-
Oddly, the importer is actually supposed to do this automatically, out of the box. The Namely, non-root directories that seem to be empty should be pruned. If you type |
Beta Was this translation helpful? Give feedback.
Oddly, the importer is actually supposed to do this automatically, out of the box. The
clutter
config option has a little more detail:https://beets.readthedocs.io/en/stable/reference/config.html#clutter
Namely, non-root directories that seem to be empty should be pruned. If you type
beet import /path/to/dir
,/path/to/dir
itself will never be removed, but empty descendants of that should be deleted. If they're not, there could be invisible files in there that are preventing beets from considering them "empty."