Ensure workspace directory exists
()
| 78 | |
| 79 | |
| 80 | def ensure_workspace_exists(): |
| 81 | """Ensure workspace directory exists""" |
| 82 | global WORKSPACE_DIR |
| 83 | if WORKSPACE_DIR is None: |
| 84 | initialize_workspace() |
| 85 | |
| 86 | # Create workspace directory (if it doesn't exist) |
| 87 | if not WORKSPACE_DIR.exists(): |
| 88 | WORKSPACE_DIR.mkdir(parents=True, exist_ok=True) |
| 89 | logger.info(f"Workspace directory created: {WORKSPACE_DIR}") |
| 90 | |
| 91 | |
| 92 | def validate_path(path: str) -> Path: |
no test coverage detected