Skip to main content

remove_entry_no_follow

Function remove_entry_no_follow 

Source
pub fn remove_entry_no_follow(path: &Path) -> Result<()>
Expand description

Permanently remove the entry at path without following it: a symlink (or Windows junction) is unlinked and its target kept, a directory is removed with its contents, anything else is removed as a file.

Same rule as deleteeditorfile, which acts on the link path rather than the canonical path for exactly this reason. remove_dir_all does not follow links inside the tree either.