Empty directories

Today I got asked if it was possible to recurse through a folder structure and find all the empty directories within that structure. It sounded like a simple job for os.walk, and it was. The os.walk recurses a directory structure returning a 3-tuple for each directory (including the starting directory) containing the directory path, aContinue reading “Empty directories”