Use pathclass.Path.makedirs.

This commit is contained in:
Ethan Dalool 2020-09-24 14:18:41 -07:00
parent 5d16cd0e3a
commit 173dd60451

View file

@ -298,7 +298,7 @@ def download_stick(id, overwrite=False, extract=False):
print(f'Downloading {id}') print(f'Downloading {id}')
response = request(download_link) response = request(download_link)
os.makedirs(directory.absolute_path, exist_ok=True) directory.makedirs(exist_ok=True)
with filepath.open('wb') as handle: with filepath.open('wb') as handle:
handle.write(response.content) handle.write(response.content)