tree, dont_show_children_nodes, number of direct children
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user