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

Function forward_pid_dir

crates/openshell-core/src/forward.rs:20–22  ·  view source on GitHub ↗

Base directory for forward PID files.

()

Source from the content-addressed store, hash-verified

18
19/// Base directory for forward PID files.
20pub fn forward_pid_dir() -> Result<PathBuf> {
21 Ok(xdg_config_dir()?.join("openshell").join("forwards"))
22}
23
24/// PID file path for a specific sandbox + port forward.
25pub fn forward_pid_path(name: &str, port: u16) -> Result<PathBuf> {

Callers 4

forward_pid_pathFunction · 0.85
write_forward_pidFunction · 0.85
list_forwardsFunction · 0.85

Calls 1

xdg_config_dirFunction · 0.70

Tested by

no test coverage detected