# HG changeset patch # User Jeff Hammel # Date 1374705712 25200 # Node ID b1c43c980b057eca03b263ada2d7d1f6e4877d33 # Parent 3f84a96cccf61c6ff4fe49f901b002a8f99028f8 nottin to see here diff -r 3f84a96cccf6 -r b1c43c980b05 python/tree.py --- 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))