Read a text file, returning '' if it does not exist.
(path: Path)
| 264 | |
| 265 | |
| 266 | def read_optional(path: Path) -> str: |
| 267 | """Read a text file, returning '' if it does not exist.""" |
| 268 | return path.read_text(encoding="utf-8") if path.exists() else "" |
| 269 | |
| 270 | |
| 271 | def load_manifest(root: Path) -> list[Entry]: |
no test coverage detected