write a json file with some info about the link
(link: Link, out_dir: Optional[str]=None)
| 92 | |
| 93 | @enforce_types |
| 94 | def 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 |
no test coverage detected