Skip to main content

remove_file_if_exists

Function remove_file_if_exists 

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

Remove a file when present.

Returns whether an entry was removed.

ยงErrors

Returns a contextual error for failures other than a missing path.