tree, dont_show_children_nodes, number of direct children

This commit is contained in:
Amber
2024-01-25 08:46:28 +01:00
parent c2c0f3ec3c
commit f6424891b9
6 changed files with 11 additions and 4 deletions

View File

@ -37,6 +37,11 @@ def produce_treeline(prec_seps, lsep):
else:
item_name = item['name']
tomount = sep + item_name
# if item.get('type') == 'd':
# if item.get('nchildren') is not None:
# tomount += '(%s)' % (item['nchildren'],)
tree_line = mount_str_at(tree_line, level2indent(level_n), tomount)
return tree_line.rstrip()
@ -45,8 +50,6 @@ def nerd_tree_sort_dirfirst(startpath):
files = []
dirs = []
for item in os.listdir(startpath):
if os.path.isdir(startpath + item):
dirs.append(item)