Fix update_orphaned empty directory removal

As this no longer uses a starmap, the second argument wasn't being passed in correctly.
This commit is contained in:
buthed010203 2023-05-23 09:15:11 -04:00 committed by GitHub
parent b7af4de4ac
commit afd2e64dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)