Tweak output - the root node now has a: ─┬

This commit is contained in:
andy.boot
2018-05-09 10:58:32 +01:00
parent dd75ec4aa7
commit ce0e14bf00
2 changed files with 29 additions and 28 deletions
+2 -1
View File
@@ -19,7 +19,7 @@ pub fn draw_it(
for &(ref k, _) in to_display.iter() {
if base_dirs.contains(k) {
display_node(&k, &mut found, &to_display, true, short_paths, depth, "")
display_node(&k, &mut found, &to_display, true, short_paths, depth, "─┬")
}
}
}
@@ -64,6 +64,7 @@ fn display_node<S: Into<String>>(
is = is.replace("└──", " ");
is = is.replace("├──", "");
is = is.replace("├─┬", "");
is = is.replace("─┬", " ");
let printable_node_slashes = node_to_print.matches('/').count();