pub fn check_immutable(path: &Path) -> Result<(), String>Expand description
Best-effort check for the immutable attribute via lsattr -d.
Returns Err(String) only when the target itself is immutable.
If lsattr is missing or fails, this returns Ok(()) (best-effort).
ยงErrors
Returns an error string if the target is immutable.