pub fn remove_file_if_exists<P: AsRef<Path>>(path: P) -> Result<()>Expand description
Delete the file at path if it exists.
Used by Pager::close() to remove the WAL sidecar after a clean
shutdown. Missing-file is intentionally not an error; the
post-condition is “no file at path”, and that is satisfied either
by deletion or by absence.
§Errors
Returns Error::Io on any failure other than NotFound.