fix: delete excels dir before attempt to create
This commit is contained in:
5
main.py
5
main.py
@@ -166,6 +166,11 @@ faileds = []
|
||||
def main():
|
||||
t = utils.StepTimeCounter()
|
||||
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)
|
||||
print(f"Directory '{DIRNAME}' created successfully.")
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user