Commits

Vincent Hillenbrink  committed ed434a1

removeemptydirs searches depth first for maximum effect

  • Participants
  • Parent commits 366e25c

Comments (0)

Files changed (1)

File bin/djenvlib

     # Make directories as empty as possible
     removeorphanpycs
     cleanupdirs .DS_Store
-    # Then remove the totally empty ones
-    find $PROJECT_ROOT -type d -empty -delete
+    # Then remove the totally empty ones, depth first
+    find $PROJECT_ROOT -depth -type d -empty -delete
 }
 
 # Change directory to Django project