1
0
Fork 0
mirror of synced 2024-06-25 01:20:30 +12:00

fix missing str path

This commit is contained in:
Nick Sweeting 2021-01-30 01:25:08 -05:00
parent 4576b40ccb
commit c2aaa41c76

View file

@ -182,7 +182,7 @@ def wget_output_path(link: Link) -> Optional[str]:
last_part_of_url = urldecode(full_path.rsplit('/', 1)[-1])
for file_present in search_dir.iterdir():
if file_present == last_part_of_url:
return search_dir / file_present
return str(search_dir / file_present)
# Move up one directory level
search_dir = search_dir.parent