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

        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)?;

        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,
        explicit_uidgid: bool,
        layered: bool,
    ) -> Result<Self> {
        let tree_builder = FilesystemTreeBuilder::new(root_path.clone(), layered);
        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)?;
        Ok(tree)
    }
pub fn from_filesystem ( root_path : & PathBuf , explicit_uidgid : bool , layered : bool , ) -> Result < Self > { let tree_builder = FilesystemTreeBuilder :: new ( root_path . clone ( ) , layered ) ; 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 ) ? ; Ok ( tree ) }
Build node tree from a filesystem directory
Build node tree from a filesystem directory
root_path
&PathBuf
explicit_uidgid
bool
layered
bool
root_path
&PathBuf
explicit_uidgid
bool
layered
bool