pub fn from_filesystem(
        root_path: &PathBuf,
        overlay: bool,
        explicit_uidgid: bool,
    ) -> Result<Self> {
        let tree_builder = FilesystemTreeBuilder::new(root_path.clone());

        let node = Node::new(
            root_path.clone(),
            root_path.clone(),
            Overlay::UpperAddition,
            explicit_uidgid,
        )?;
        let mut tree = Tree::new(node);

        tree.children = tree_builder.load_children(&mut tree.node, overlay)?;

        Ok(tree)
    }
/// Build node tree from a filesystem directory
Build node tree from a filesystem directory
Build node tree from a filesystem directory
pub fn from_filesystem(
        root_path: &PathBuf,
        overlay: bool,
        explicit_uidgid: bool,
    ) -> Result<Self> {
        let tree_builder = FilesystemTreeBuilder::new(root_path.clone());
        let node = Node::new(
            root_path.clone(),
            root_path.clone(),
            Overlay::UpperAddition,
            explicit_uidgid,
        )?;
        let mut tree = Tree::new(node);
        tree.children = tree_builder.load_children(&mut tree.node, overlay)?;
        Ok(tree)
    }
pub fn from_filesystem ( root_path : & PathBuf , overlay : bool , explicit_uidgid : bool , ) -> Result < Self > { let tree_builder = FilesystemTreeBuilder :: new ( root_path . clone ( ) ) ; let node = Node :: new ( root_path . clone ( ) , root_path . clone ( ) , Overlay :: UpperAddition , explicit_uidgid , ) ? ; let mut tree = Tree :: new ( node ) ; tree . children = tree_builder . load_children ( & mut tree . node , overlay ) ? ; Ok ( tree ) }
Build node tree from a filesystem directory
Build node tree from a filesystem directory
root_path
&PathBuf
overlay
bool
explicit_uidgid
bool
root_path
&PathBuf
overlay
bool
explicit_uidgid
bool