pub fn remove_if_exists(path: &Path) -> Result<()>Expand description
Remove a file if it exists; silently return Ok(()) if it does not.
ยงErrors
Returns an error if remove_file fails for any reason other than
NotFound (typically permission denied or the path being a
non-empty directory).