NaPs / Kolekto

Kolekto is a really KISS movie catalog software
MIT License
27 stars 3 forks source link

Remove empty directories in views #23

Closed tetraf closed 10 years ago

tetraf commented 10 years ago

When (un)linking it may be interesting to test if a directory is empty then remove it to keep "views" as clean as possible.

Currently I run this command on views:

find ./ -type d -exec rmdir --ignore-fail-on-non-empty {} \;
NaPs commented 10 years ago

I would have bet that you would open this ticket after testing the new feature of #20 :-)

tetraf commented 10 years ago

Indeed ;)

NaPs commented 10 years ago

Please not that this feature will not delete already existing empty directories, you will need to execute your "find" snipped or to manually delete all view directories to remove them.