pub fn get_entry(
    root: Rc<RefCell<dyn FileDirEntry>>,
    entry_path: &str
) -> Option<Rc<RefCell<dyn FileDirEntry>>>
Expand description

Return a FileDirEntry object representing the specified file “path” in an internal list of data entries that is organized in a file/directory structure. The root and returned object are reference-counted smart pointers to a reference cell object containing the dynamic pointer to the FileDirEntry trait.

Parameters

  • root

    The FileDirEntry object representing the root of the directory tree to search.

  • entry_path

    The “path” to search for in the given directory tree.

Returns

Returns an Option<> containing the found FileDirEntry object. Returns None if no entry was found.