(
path: &Path,
openclaw_path: &Path,
)
| 356 | } |
| 357 | |
| 358 | fn 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 | |
| 369 | fn print_openclaw_recovery_notice(openclaw_path: &Path, backup_path: &Path) { |
| 370 | let bak = backup_path.display().to_string(); |
no test coverage detected