diff options
| -rwxr-xr-x | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -88,7 +88,7 @@ def __do_clean_async(is_lightweigth, q): | |||
| 88 | f = q.get() | 88 | f = q.get() |
| 89 | if f is None: # nothing more to process | 89 | if f is None: # nothing more to process |
| 90 | return | 90 | return |
| 91 | clean_meta(is_lightweigth, f) | 91 | clean_meta(f, is_lightweigth) |
| 92 | q.task_done() | 92 | q.task_done() |
| 93 | 93 | ||
| 94 | 94 | ||
| @@ -108,6 +108,7 @@ def main(): | |||
| 108 | return | 108 | return |
| 109 | 109 | ||
| 110 | else: # Thread the cleaning | 110 | else: # Thread the cleaning |
| 111 | mode = (args.lightweight is True) | ||
| 111 | q = Queue(maxsize=0) | 112 | q = Queue(maxsize=0) |
| 112 | threads = list() | 113 | threads = list() |
| 113 | for f in __get_files_recursively(args.files): | 114 | for f in __get_files_recursively(args.files): |
