Browse Source

fix missing str path

Nick Sweeting 4 years ago
parent
commit
c2aaa41c76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/extractors/wget.py

+ 1 - 1
archivebox/extractors/wget.py

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