Tag Archives: remove
Python script: remove empty folders
One of the scripts I often use is this one to remove empty folders under a specific location on your hard drive. The usage is simple: $ [path to the script]/remove_empty_folders.py [path_to_clean] Here is the code: #! /usr/bin/env python import os, sys def removeEmptyFolders(path): if not os.path.isdir(path): return # [...]
