svn_io_check_path

Function svn_io_check_path 

Source
pub unsafe extern "C" fn svn_io_check_path(
    path: *const c_char,
    kind: *mut svn_node_kind_t,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Determine the @a kind of @a path. @a path should be UTF-8 encoded.

If @a path is a file, set @a *kind to #svn_node_file.

If @a path is a directory, set @a *kind to #svn_node_dir.

If @a path does not exist, set @a *kind to #svn_node_none.

If @a path exists but is none of the above, set @a *kind to #svn_node_unknown.

If @a path is not a valid pathname, set @a *kind to #svn_node_none. If unable to determine @a path’s kind for any other reason, return an error, with @a *kind’s value undefined.

Use @a pool for temporary allocations.

@see svn_node_kind_t