MCPcopy Create free account
hub / github.com/clawshell/clawshell / ensure_runtime_dirs

Function ensure_runtime_dirs

src/process.rs:39–41  ·  view source on GitHub ↗

Ensure the parent directories for log files exist.

()

Source from the content-addressed store, hash-verified

37
38/// Ensure the parent directories for log files exist.
39pub fn ensure_runtime_dirs() -> Result<(), Box<dyn std::error::Error>> {
40 ensure_runtime_dirs_vfs(&physical_root())
41}
42
43/// Drop privileges from root to the `clawshell` system user.
44///

Callers 1

cmd_start_innerFunction · 0.85

Calls 2

ensure_runtime_dirs_vfsFunction · 0.85
physical_rootFunction · 0.85

Tested by

no test coverage detected