Улучшение кода main.py и конфигурации
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ def apply(config: dict) -> bool:
|
||||
if config.get("verbose", False):
|
||||
tqdm.write(f'Удалён файл: {item_path}')
|
||||
elif os.path.isdir(item_path):
|
||||
if item not in config["cleanup"]["keep_dirs"]:
|
||||
if item not in config["keep_dirs"]:
|
||||
shutil.rmtree(item_path)
|
||||
if config.get("verbose", False):
|
||||
tqdm.write(f'Удалена папка: {item_path}')
|
||||
|
||||
Reference in New Issue
Block a user