Skip to main content

remove_file_beneath

Function remove_file_beneath 

Source
pub fn remove_file_beneath(root: &Path, rel: &Path) -> Result<(), Error>
Expand description

Confined unlink of a root-relative file (#77): opens the parent under RESOLVE_BENEATH and unlinkats the leaf, so a swapped-in symlink parent can’t redirect the delete outside root.