Skip to main content

remove_regular

Function remove_regular 

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

Remove a file, treating “already gone” as success.

remove_file on unix unlinks a symlink rather than its target, which is the behaviour uninstall --force needs and the reason this is not remove_dir_all or anything cleverer.