This commit is contained in:
bobokun 2024-02-10 15:35:15 -05:00
parent dc2c67d368
commit c041e3a45f
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
4.0.9-develop2
4.0.9-develop3

View file

@ -688,7 +688,8 @@ class Config:
if num_del > 0:
if not self.dry_run:
for path in location_path_list:
util.remove_empty_directories(path, "**/*")
if path != location_path:
util.remove_empty_directories(path, "**/*")
body += logger.print_line(
f"{'Did not delete' if self.dry_run else 'Deleted'} {num_del} files "
f"({util.human_readable_size(size_bytes)}) from the {location}.",