Ensure the workspace directory for a view exists. Creates `.atomic/workspaces/ /` and any intermediate directories. This is called from `init`, `create_view`, and `create_view_from`.
(dot_dir: &Path, view_name: &str)
| 22 | /// directories. This is called from `init`, `create_view`, and |
| 23 | /// `create_view_from`. |
| 24 | pub(super) fn ensure_workspace_dir(dot_dir: &Path, view_name: &str) -> Result<(), RepositoryError> { |
| 25 | let ws = workspace_path(dot_dir, view_name); |
| 26 | std::fs::create_dir_all(&ws)?; |
| 27 | Ok(()) |
| 28 | } |
| 29 | |
| 30 | pub(super) fn working_copy_workspace_path( |
| 31 | dot_dir: &Path, |
no test coverage detected