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

Function ensure_runtime_dirs_vfs

src/process.rs:32–36  ·  view source on GitHub ↗

Ensure the parent directories for log files exist (VFS variant).

(root: &VfsPath)

Source from the content-addressed store, hash-verified

30
31/// Ensure the parent directories for log files exist (VFS variant).
32pub(crate) fn ensure_runtime_dirs_vfs(root: &VfsPath) -> Result<(), Box<dyn std::error::Error>> {
33 let log_path = log_file_vfs(root)?;
34 log_path.parent().create_dir_all()?;
35 Ok(())
36}
37
38/// Ensure the parent directories for log files exist.
39pub fn ensure_runtime_dirs() -> Result<(), Box<dyn std::error::Error>> {

Callers 2

ensure_runtime_dirsFunction · 0.85
test_ensure_runtime_dirsFunction · 0.85

Calls 1

log_file_vfsFunction · 0.85

Tested by 1

test_ensure_runtime_dirsFunction · 0.68