Skip to content

Commit 8a4f909

Browse files
committed
Replace Pathlib.mkdir with os.makedirs
1 parent 5012a44 commit 8a4f909

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gdown/download_folder.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ def download_folder(
317317
print("Building directory structure completed")
318318
for file_id, file_path in directory_structure:
319319
if file_id is None: # folder
320-
file_path.mkdir(parents=True, exist_ok=True)
320+
if not osp.exists(file_path):
321+
os.makedirs(file_path)
321322
continue
322323

323324
return_code = download(

0 commit comments

Comments
 (0)