Function explore

Source
pub fn explore(
    base_path: &Path,
    data: &mut HashMap<String, Vec<TreeType>>,
    file_size_round: i32,
)
Expand description

Generate a hierarchical mapping of files and directories, organized by their depth within the directory structure.

use std::collections::HashMap;
use std::path::Path;
use tree_mapper::explore;
use tree_mapper::TreeType;
let base_path: String = String::from("storage/test-data");
let mut data: HashMap<String,Vec<TreeType>> = HashMap::new();
explore(Path::new(&base_path),&mut data,1);
println!("{:#?}",data);