From c2ba306733b31fc2c657a63d6616afe42e01467a Mon Sep 17 00:00:00 2001 From: Arity-T Date: Tue, 3 Feb 2026 10:56:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=83=D1=81=D1=82=D1=8B=D1=85=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BF=D0=BE=D0=BA=20=D0=B2=20data=5Fpartial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scenarios.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scenarios.py b/src/scenarios.py index c879f71..683d4b3 100644 --- a/src/scenarios.py +++ b/src/scenarios.py @@ -265,6 +265,10 @@ def move_scenario_to_data(scenario_id: str) -> None: shutil.move(str(file), str(dst)) moved_count += 1 + # Удаляем пустую папку + if partial_dir.exists() and not any(partial_dir.iterdir()): + partial_dir.rmdir() + if moved_count > 0: logger.info(f"Сценарий {scenario_id} завершён: перенесено {moved_count} файлов")