fn print_file_system_node(dir: &FileTreeNode, dirs: u64, files: u64) {
    let mut siblings = HashMap::new();
    print_file_system_node_body(dir, 0, &mut siblings);

    // print summary row
    println!(
        "\n{} {}, {} {}",
        dirs,
        pluralize("directory", "directories", dirs),
        files,
        pluralize("file", "files", files),
    );
}
// A function to print a FileTreeNode in format similar to unix `tree` command.
// prints a summary row below the main tree body.
A function to print a FileTreeNode in format similar to unix `tree` command.
prints a summary row below the main tree body.
A function to print a FileTreeNode in format similar to unix ` tree ` command . prints a summary row below the main tree body .
fn print_file_system_node(dir: &FileTreeNode, dirs: u64, files: u64) {
    let mut siblings = HashMap::new();
    print_file_system_node_body(dir, 0, &mut siblings);
    // print summary row
    println!(
        "\n{} {}, {} {}",
        dirs,
        pluralize("directory", "directories", dirs),
        files,
        pluralize("file", "files", files),
    );
}
fn print_file_system_node ( dir : & FileTreeNode , dirs : u64 , files : u64 ) { let mut siblings = HashMap :: new ( ) ; print_file_system_node_body ( dir , 0 , & mut siblings ) ; // print summary row println ! ( " \n " dirs pluralize ( " " " " dirs ) files pluralize ( " " " " files ) ) ; }
A function to print a FileTreeNode in format similar to unix `tree` command.
A function to print a FileTreeNode in format similar to unix ` tree ` command .
dir
&FileTreeNode
dirs
u64
files
u64
dir
&FileTreeNode
dirs
u64
files
u64