Skip to content

Commit 50bd624

Browse files
committed
mkdir -> makedirs
1 parent e830f20 commit 50bd624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasks/base_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def start(cls):
251251
t = datetime.now().strftime('%Y%m%d%H%M%S')
252252
code_dir = f'{work_dir}/codes/{t}'
253253
# TODO: test filesystem calls
254-
os.mkdir(code_dir)
254+
os.makedirs(code_dir, exist_ok=True)
255255
# subprocess.check_call(f'mkdir "{code_dir}"', shell=True)
256256
for c in hparams['save_codes']:
257257
shutil.copytree(c, code_dir, dirs_exist_ok=True)

0 commit comments

Comments
 (0)