snix_castore::directoryservice::traverse

Function descend_to

Source
pub async fn descend_to<DS>(
    directory_service: DS,
    root_node: Node,
    path: impl AsRef<Path> + Display,
) -> Result<Option<Node>, Error>
where DS: DirectoryService,
Expand description

This descends from a (root) node to the given (sub)path, returning the Node at that path, or none, if there’s nothing at that path.