Spaces:
Runtime error
Runtime error
chore: update mkdir parent option
Browse files
utils.py
CHANGED
@@ -69,7 +69,7 @@ def clean_directory() -> None:
|
|
69 |
for target_dir in ALL_DIRS:
|
70 |
if os.path.exists(target_dir) and os.path.isdir(target_dir):
|
71 |
shutil.rmtree(target_dir)
|
72 |
-
target_dir.mkdir(exist_ok=True)
|
73 |
|
74 |
|
75 |
def get_disease_name(encoded_prediction: int, file_name: str = TRAINING_FILENAME) -> str:
|
|
|
69 |
for target_dir in ALL_DIRS:
|
70 |
if os.path.exists(target_dir) and os.path.isdir(target_dir):
|
71 |
shutil.rmtree(target_dir)
|
72 |
+
target_dir.mkdir(exist_ok=True, parents=True)
|
73 |
|
74 |
|
75 |
def get_disease_name(encoded_prediction: int, file_name: str = TRAINING_FILENAME) -> str:
|