pub fn build_tree(root: &Path, config: &TreeConfig) -> Result<FileNode, Error>
Build a file tree from a directory
Returns an error if the path cannot be read or doesn’t exist.