mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
Replaced os.path in init index
This commit is contained in:
parent
78f7062761
commit
ad04fb5300
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ def is_archived(link: Link) -> bool:
|
|||
return is_valid(link) and link.is_archived
|
||||
|
||||
def is_unarchived(link: Link) -> bool:
|
||||
if not os.path.exists(link.link_dir):
|
||||
if not Path(link.link_dir).exists():
|
||||
return True
|
||||
return not link.is_archived
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue