svn_io_dir_walk2

Function svn_io_dir_walk2 

Source
pub unsafe extern "C" fn svn_io_dir_walk2(
    dirname: *const c_char,
    wanted: apr_int32_t,
    walk_func: svn_io_walk_func_t,
    walk_baton: *mut c_void,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Recursively walk the directory rooted at @a dirname, a utf8-encoded path, invoking @a walk_func (with @a walk_baton) for each item in the tree. For a given directory, invoke @a walk_func on the directory itself before invoking it on any children thereof.

Deliver to @a walk_func the information specified by @a wanted, which is a combination of @c APR_FINFO_* flags, plus the information specified by @c APR_FINFO_TYPE and @c APR_FINFO_NAME.

Use @a pool for all allocations.

@note This function does not currently pass all file types to @a walk_func – only APR_DIR, APR_REG, and APR_LNK. We reserve the right to pass additional file types through this interface in the future, though, so implementations of this callback should explicitly test FINFO->filetype. See the APR library’s apr_filetype_e enum for the various filetypes and their meanings.

@since New in 1.7.