Remove empty directories in views
tetraf opened this issue · comments
tetraf commented
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 {} \;
Antoine Millet commented
I would have bet that you would open this ticket after testing the new feature of #20 :-)
tetraf commented
Indeed ;)
Antoine Millet commented
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.