mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-09-20 15:26:02 +08:00
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:
parent
b7af4de4ac
commit
afd2e64dd9
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue