fix: delete excels dir before attempt to create

This commit is contained in:
2025-09-17 17:39:11 +03:00
parent 31c363380a
commit 81c437ce9c

View File

@@ -166,6 +166,11 @@ faileds = []
def main(): def main():
t = utils.StepTimeCounter() t = utils.StepTimeCounter()
try: try:
try:
shutil.rmtree(DIRNAME)
print(f"Directory '{DIRNAME}' and its contents deleted successfully.")
except Exception as e:
print(f"Error deleting directory '{DIRNAME}': {e}")
os.mkdir(DIRNAME) os.mkdir(DIRNAME)
print(f"Directory '{DIRNAME}' created successfully.") print(f"Directory '{DIRNAME}' created successfully.")
except Exception as e: except Exception as e: