Function build

Source
pub fn build(config: Config) -> Result<TreeNode, Error>
Expand description

Builds a tree structure representing the directory structure starting from the specified path.

§Arguments

  • config - Config specifying the path and other parameters such as depth check and exclude pattern.

§Returns

A Result containing a TreeNode representing the root of the tree structure, or an io::Error if the operation fails.