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

Function align_owner_with_openclaw_path

src/main.rs:358–367  ·  view source on GitHub ↗
(
    path: &Path,
    openclaw_path: &Path,
)

Source from the content-addressed store, hash-verified

356}
357
358fn align_owner_with_openclaw_path(
359 path: &Path,
360 openclaw_path: &Path,
361) -> Result<bool, Box<dyn Error>> {
362 let Some(owner_spec) = resolve_openclaw_owner_spec(openclaw_path)? else {
363 return Ok(false);
364 };
365 chown_path(path, &owner_spec, true)?;
366 Ok(true)
367}
368
369fn print_openclaw_recovery_notice(openclaw_path: &Path, backup_path: &Path) {
370 let bak = backup_path.display().to_string();

Callers 2

Calls 2

chown_pathFunction · 0.85

Tested by

no test coverage detected