Skip to content

Commit

Permalink
Fixes #479
Browse files Browse the repository at this point in the history
  • Loading branch information
bobokun committed Feb 10, 2024
1 parent dc2c67d commit c041e3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.9-develop2
4.0.9-develop3
3 changes: 2 additions & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ def cleanup_dirs(self, location):
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}.",
Expand Down

0 comments on commit c041e3a

Please sign in to comment.