pub fn set_path_writable(path: &Path) -> Result<(), Error>
Recursively ensures a directory and its contents are writable.
Returns an error if the permission change fails.