Skip to content

How to delete empty folders after import? #4852

Answered by sampsyo
StefanDorschu asked this question in Q&A
Discussion options

You must be logged in to vote

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."

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@StefanDorschu
Comment options

Answer selected by jackwilsdon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants