svn_io_remove_file2

Function svn_io_remove_file2 

Source
pub unsafe extern "C" fn svn_io_remove_file2(
    path: *const c_char,
    ignore_enoent: svn_boolean_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Remove file @a path, a utf8-encoded path. This wraps apr_file_remove(), converting any error to a Subversion error. If @a ignore_enoent is TRUE, and the file is not present (APR_STATUS_IS_ENOENT returns TRUE), then no error will be returned.

The file will be removed even if it is not writable. (On Windows and OS/2, this function first clears the file’s read-only bit.)

@since New in 1.7.