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

Function workspace_path

atomic-repository/src/repository/switch.rs:15–17  ·  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

13/// contain `/` (e.g. `agent/ses_abc123`), which becomes a nested
14/// directory structure.
15pub(super) fn workspace_path(dot_dir: &Path, view_name: &str) -> PathBuf {
16 dot_dir.join(WORKSPACES_DIR).join(view_name)
17}
18
19/// Ensure the workspace directory for a view exists.
20///

Callers 3

delete_viewMethod · 0.85
ensure_workspace_dirFunction · 0.85

Calls

no outgoing calls