kcelia commited on
Commit
4f6d82f
1 Parent(s): 9b80a97

chore: update mkdir parent option

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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: