Function insert_path
Source pub fn insert_path(tree: &mut BTreeMap<String, Box<Tree>>, parts: &[&str])
Expand description
Inserts a path (as dot-separated parts) into the tree structure (RECURSIVE VERSION)
§Arguments
tree - The tree node to insert into
parts - Slice of path parts to insert
§Example
use dir_path_2_tree::*;
let mut tree = Tree::default();
insert_path(&mut tree.0, &["a", "b", "c"]);