Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Use os.makedirs(...) to create intermediate directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Jul 9, 2020
1 parent 12bfdfb commit 9fd98b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holdit/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def user_data_path():
data_dir = user_data_dir('Hold It', 'CaltechLibrary')
if not path.exists(data_dir):
if __debug__: log('creating user data directory {}', data_dir)
os.mkdir(data_dir)
os.makedirs(data_dir, exist_ok = True)
return data_dir


Expand Down

0 comments on commit 9fd98b1

Please # to comment.