(filepath: Union[str, pathlib.Path], content: Dict[str, Any])
| 142 | |
| 143 | @staticmethod |
| 144 | def write_json(filepath: Union[str, pathlib.Path], content: Dict[str, Any]) -> None: |
| 145 | with open(filepath, "w") as outfile: |
| 146 | json.dump(content, outfile, cls=MagicJsonEncoder, indent=4) |
| 147 | |
| 148 | @staticmethod |
| 149 | def first_file(filepath: Union[str, pathlib.Path], pattern: str, reverse: bool = False) -> Union[str, bool]: |