Browse Source

Replaced os.path in init index

Angel Rey 5 năm trước cách đây
mục cha
commit
ad04fb5300
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      archivebox/index/__init__.py

+ 1 - 1
archivebox/index/__init__.py

@@ -575,7 +575,7 @@ def is_archived(link: Link) -> bool:
     return is_valid(link) and link.is_archived
     return is_valid(link) and link.is_archived
     
     
 def is_unarchived(link: Link) -> bool:
 def is_unarchived(link: Link) -> bool:
-    if not os.path.exists(link.link_dir):
+    if not Path(link.link_dir).exists():
         return True
         return True
     return not link.is_archived
     return not link.is_archived