Load role metadata from disk.
(roles_path: Path = ROLES_FILE)
| 36 | |
| 37 | |
| 38 | def load_roles_meta(roles_path: Path = ROLES_FILE) -> Dict[str, Any]: |
| 39 | """Load role metadata from disk.""" |
| 40 | if not roles_path.exists(): |
| 41 | raise FileNotFoundError(f"Roles file not found: {roles_path}") |
| 42 | |
| 43 | with roles_path.open("r", encoding="utf-8") as handle: |
| 44 | return json.load(handle) |
| 45 | |
| 46 | |
| 47 | def backup_database(db_path: Path = DB_PATH, backup_dir: Path = BACKUP_DIR) -> Path: |
no outgoing calls
no test coverage detected