pub unsafe extern "C" fn aws_directory_traverse(
allocator: *mut aws_allocator,
path: *const aws_string,
recursive: bool,
on_entry: aws_on_directory_entry,
user_data: *mut c_void
) -> c_int
Expand description
Traverse a directory starting at path.
If you want the traversal to recurse the entire directory, pass recursive as true. Passing false for this parameter will only iterate the contents of the directory, but will not descend into any directories it encounters.
If recursive is set to true, the traversal is performed post-order, depth-first (for practical reasons such as deleting a directory that contains subdirectories or files).
returns AWS_OP_SUCCESS(0) on success.