From afd2e64dd9df71e89a433a134115f1eaa51eaf62 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Tue, 23 May 2023 09:15:11 -0400 Subject: [PATCH] Fix update_orphaned empty directory removal As this no longer uses a starmap, the second argument wasn't being passed in correctly. --- modules/core/remove_orphaned.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/remove_orphaned.py b/modules/core/remove_orphaned.py index 772ccc2..a49ddc6 100644 --- a/modules/core/remove_orphaned.py +++ b/modules/core/remove_orphaned.py @@ -93,8 +93,7 @@ class RemoveOrphaned: if not self.config.dry_run: orphaned_parent_path = set(self.executor.map(self.move_orphan, orphaned_files)) logger.print_line("Removing newly empty directories", self.config.loglevel) - self.executor.map(util.remove_empty_directories, zip(orphaned_parent_path, repeat("**/*"))) - + self.executor.map(lambda dir: util.remove_empty_directories(dir, "**/*"), orphaned_parent_path) else: logger.print_line("No Orphaned Files found.", self.config.loglevel)