MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / last_sandbox_path

Function last_sandbox_path

crates/openshell-bootstrap/src/paths.rs:94–96  ·  view source on GitHub ↗

Path to the file that stores the last-used sandbox name for a gateway. Location: `$XDG_CONFIG_HOME/openshell/gateways/ /last_sandbox`

(gateway: &str)

Source from the content-addressed store, hash-verified

92///
93/// Location: `$XDG_CONFIG_HOME/openshell/gateways/<gateway>/last_sandbox`
94pub fn last_sandbox_path(gateway: &str) -> Result<PathBuf> {
95 Ok(user_gateway_dir(gateway)?.join("last_sandbox"))
96}
97
98#[cfg(test)]
99mod tests {

Calls 1

user_gateway_dirFunction · 0.85