MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / write_json_link_details

Function write_json_link_details

archivebox/index/json.py:94–99  ·  view source on GitHub ↗

write a json file with some info about the link

(link: Link, out_dir: Optional[str]=None)

Source from the content-addressed store, hash-verified

92
93@enforce_types
94def write_json_link_details(link: Link, out_dir: Optional[str]=None) -> None:
95 """write a json file with some info about the link"""
96
97 out_dir = out_dir or link.link_dir
98 path = Path(out_dir) / JSON_INDEX_FILENAME
99 atomic_write(str(path), link._asdict(extended=True))
100
101
102@enforce_types

Callers 3

write_link_detailsFunction · 0.85
get_unrecognized_foldersFunction · 0.85

Calls 2

atomic_writeFunction · 0.85
_asdictMethod · 0.45

Tested by

no test coverage detected