(config: dict[str, Any])
| 946 | |
| 947 | |
| 948 | def configured_obsidian_vault(config: dict[str, Any]) -> Path | None: |
| 949 | vault = str(config.get("obsidian_vault", "")).strip() |
| 950 | if not vault: |
| 951 | return None |
| 952 | vault_path = Path(vault).expanduser().resolve() |
| 953 | if not vault_path.exists() or not vault_path.is_dir(): |
| 954 | raise RuntimeError(f"Configured Obsidian vault does not exist: {vault_path}") |
| 955 | return vault_path |
| 956 | |
| 957 | |
| 958 | def require_obsidian_vault(config: dict[str, Any]) -> Path: |
no outgoing calls
no test coverage detected