From 173dd60451fef9bc5ff6b72e9cb01e655638a49a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 24 Sep 2020 14:18:41 -0700 Subject: [PATCH] Use pathclass.Path.makedirs. --- droidz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/droidz.py b/droidz.py index 2fd371c..b3210f2 100644 --- a/droidz.py +++ b/droidz.py @@ -298,7 +298,7 @@ def download_stick(id, overwrite=False, extract=False): print(f'Downloading {id}') response = request(download_link) - os.makedirs(directory.absolute_path, exist_ok=True) + directory.makedirs(exist_ok=True) with filepath.open('wb') as handle: handle.write(response.content)