Skip to main content

process_entry

Function process_entry 

Source
pub fn process_entry<'async_recursion, V>(
    visitor: Arc<V>,
    cx: EntryCx,
    parent_ctx: V::DirContext,
    permit: Option<LeafPermit>,
) -> Pin<Box<dyn Future<Output = Result<V::Summary, OperationError<V::Summary>>> + Send + 'async_recursion>>
where V: WalkVisitor + 'async_recursion,
Expand description

Process one already-located entry: classify it authoritatively via Dir::child, then dispatch.

parent_ctx is the inherited context of the directory that contains this entry. cx.parent must be that (hardened) directory. On a classification error the entry’s own error is surfaced — the same fail-closed behavior the per-tool walks have.