phyloforfun commited on
Commit
fc7f534
1 Parent(s): 5ee1861

file upload gallery

Browse files
Files changed (1) hide show
  1. vouchervision/general_utils.py +2 -2
vouchervision/general_utils.py CHANGED
@@ -24,10 +24,10 @@ https://helpx.adobe.com/content/dam/help/en/photoshop/pdf/dng_commandline.pdf
24
  def make_zipfile(source_dir, output_filename):
25
  shutil.make_archive(output_filename, 'zip', source_dir)
26
  return output_filename + '.zip'
27
-
28
  def validate_dir(dir):
29
  if not os.path.exists(dir):
30
- os.makedirs(dir)
31
 
32
  def get_cfg_from_full_path(path_cfg):
33
  with open(path_cfg, "r") as ymlfile:
 
24
  def make_zipfile(source_dir, output_filename):
25
  shutil.make_archive(output_filename, 'zip', source_dir)
26
  return output_filename + '.zip'
27
+
28
  def validate_dir(dir):
29
  if not os.path.exists(dir):
30
+ os.makedirs(dir, exist_ok=True)
31
 
32
  def get_cfg_from_full_path(path_cfg):
33
  with open(path_cfg, "r") as ymlfile: