Function fuchsia_fs::directory::readdir_recursive_filtered
source · pub fn readdir_recursive_filtered<'a, ResultFn, RecurseFn>(
dir: &'a DirectoryProxy,
timeout: Option<MonotonicDuration>,
results_filter: ResultFn,
recurse_filter: RecurseFn,
) -> BoxStream<'a, Result<DirEntry, RecursiveEnumerateError>>
Expand description
Returns Stream of nodes in tree rooted at the given DirectoryProxy for which |results_filter|
returns true
plus any leaf (empty) directories. The results filter receives the directory
entry for the node in question and if the node is a directory, a reference a Vec of the
directory’s contents. The function recurses into sub-directories for which |recurse_filter|
returns true. The returned entries will not include “.”. |timeout| can be provided optionally
to specify the maximum time to wait for a directory to be read.