mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-17 08:34:26 -04:00
fix: Init and status commands now are able to navigate the right archive folder
This commit is contained in:
parent
9fdcb9857e
commit
ea84607b47
3 changed files with 15 additions and 10 deletions
|
@ -113,7 +113,7 @@ def load_json_snapshot(out_dir: Path) -> Optional[Model]:
|
|||
def parse_json_snapshot_details(out_dir: Union[Path, str]) -> Iterator[dict]:
|
||||
"""read through all the archive data folders and return the parsed snapshots"""
|
||||
|
||||
for entry in os.scandir(Path(out_dir)):
|
||||
for entry in os.scandir(Path(out_dir) / ARCHIVE_DIR_NAME):
|
||||
if entry.is_dir(follow_symlinks=True):
|
||||
if (Path(entry.path) / 'index.json').exists():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue