pub fn ensure_writable(exe: &Path) -> Result<()>Expand description
Return Ok(()) iff we can create a file alongside exe.
Testing the directory (not the file itself) is what matters:
rename(2) needs write permission on the containing dir to atomic
replace. Probing creates a real empty file and deletes it to avoid
false positives from filesystems that claim metadata writability
but reject opens.