diff python/tree.py @ 377:b1c43c980b05

nottin to see here
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Jul 2013 15:41:52 -0700
parents 3f84a96cccf6
children 397d0ac832b6
line wrap: on
line diff
--- a/python/tree.py	Wed Jul 24 06:59:09 2013 -0700
+++ b/python/tree.py	Wed Jul 24 15:41:52 2013 -0700
@@ -27,6 +27,7 @@
     directories = {}
     lvlndctr = []
     last = {}
+    passed_last = {}
     columns = []
     lastdepth = depth
     for dirpath, dirnames, filenames in os.walk(directory, topdown=True):
@@ -36,6 +37,7 @@
         dirnames[:] = sorted(dirnames, key=lambda x: x.lower())
         last[os.path.abspath(dirpath)] = dirnames and dirnames[-1] or None
         directories[dirpath] = dirnames
+        
         retval.append('%s%s%s' % ('│' * (indent-1),
                                   ('├' if basename == basename else '└') if indent else '',
                                   basename))