NaPs / Kolekto

Kolekto is a really KISS movie catalog software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove empty directories in views

tetraf opened this issue · comments

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 {} \;

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

Indeed ;)

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.