mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 08:04:26 -04:00
replaced os.path in init extractors
This commit is contained in:
parent
fa364ed728
commit
ce71747538
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
|
||||||
|
|
||||||
out_dir = out_dir or Path(link.link_dir)
|
out_dir = out_dir or Path(link.link_dir)
|
||||||
try:
|
try:
|
||||||
is_new = not os.path.exists(out_dir)
|
is_new = not Path(out_dir).exists()
|
||||||
if is_new:
|
if is_new:
|
||||||
os.makedirs(out_dir)
|
os.makedirs(out_dir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue