svn_repos_list

Function svn_repos_list 

Source
pub unsafe extern "C" fn svn_repos_list(
    root: *mut svn_fs_root_t,
    path: *const c_char,
    patterns: *const apr_array_header_t,
    depth: svn_depth_t,
    path_info_only: svn_boolean_t,
    authz_read_func: svn_repos_authz_func_t,
    authz_read_baton: *mut c_void,
    receiver: svn_repos_dirent_receiver_t,
    receiver_baton: *mut c_void,
    cancel_func: svn_cancel_func_t,
    cancel_baton: *mut c_void,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Efficiently list everything within a sub-tree. Specify glob patterns to search for specific files and folders.

Walk the sub-tree starting at @a path under @a root up to the given @a depth. For each directory entry found, @a receiver will be called with @a receiver_baton. The starting @a path will be reported as well. Because retrieving all elements of a #svn_dirent_t can be expensive, you may set @a path_info_only to receive only the path name and the node kind. The entries will be reported ordered by their path.

@a patterns is an optional array of const char *. If it is not @c NULL, only those directory entries will be reported whose last path segment matches at least one of these patterns. This feature uses apr_fnmatch() for glob matching and requiring ‘.’ to matched by dots in the path.

If @a authz_read_func is not @c NULL, this function will neither report entries nor recurse into directories that the user has no access to.

Cancellation support is provided in the usual way through the optional @a cancel_func and @a cancel_baton.

@a path must point to a directory and @a depth must be at least #svn_depth_empty.

Use @a scratch_pool for temporary memory allocation.

@since New in 1.10.