Pruning now removes empty directories.