MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / workspace_path

Function workspace_path

atomic-repository/src/repository/switch.rs:8–10  ·  view source on GitHub ↗

Return the workspace directory path for a given view. The path is `.atomic/workspaces/ /`. View names may contain `/` (e.g. `agent/ses_abc123`), which becomes a nested directory structure.

(dot_dir: &Path, view_name: &str)

Source from the content-addressed store, hash-verified

6/// contain `/` (e.g. `agent/ses_abc123`), which becomes a nested
7/// directory structure.
8pub(super) fn workspace_path(dot_dir: &Path, view_name: &str) -> PathBuf {
9 dot_dir.join(WORKSPACES_DIR).join(view_name)
10}
11
12/// Ensure the workspace directory for a view exists.
13///

Callers 3

delete_viewMethod · 0.85
ensure_workspace_dirFunction · 0.85
switch_viewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected