Улучшение кода main.py и конфигурации

This commit is contained in:
2025-09-14 20:12:28 +03:00
parent 9453b3b50b
commit 9da9e98547
7 changed files with 270 additions and 262 deletions
+1 -1
View File
@@ -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}')