Skip to content
Snippets Groups Projects
Unverified Commit 9b900d87 authored by Christian Clauss's avatar Christian Clauss Committed by GitHub
Browse files

Use Python os.makedirs() instead of os.makedir()

Fixes #384 

[`os.makedir()`](https://docs.python.org/3/library/os.html#os.makedir) is raising `FileNotFoundError` because a parent directory in the path does not exist so let's use [`os.makedirs()`](https://docs.python.org/3/library/os.html#os.makedirs) which will create any missing parent directories.
parent 64a46031
Branches
No related tags found
No related merge requests found
......@@ -102,8 +102,7 @@ if __name__ == "__main__":
with open(fpath) as f:
archive = f.readline()
if not os.path.exists(archive):
os.mkdir(archive)
os.mkdirs(archive, exist_ok=True)
os.chdir(archive)
AllTools().show_options()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment