diff --git a/tdir b/tdir index 624ed4f..73205d0 100755 --- a/tdir +++ b/tdir @@ -13,7 +13,7 @@ # Version info -VERSION = "$Id: tdir,v 1.53 2001/06/24 01:29:15 tundra Exp $" +VERSION = "$Id: tdir,v 1.54 2001/06/24 01:35:50 tundra Exp $" # Booleans @@ -36,7 +36,7 @@ RECURSE = FALSE # No recursion SHOWDIR = TRUE # Show directories in listing SHOWFILE = TRUE # Show files in listing -TREE = FALSE # Don't just show the directory tree + def OrderByExtension(list): ExtList = {} @@ -77,7 +77,7 @@ def DisplayOutput(dir, DirList, FileList): sys.stdout.write(dir.replace("\\", "/") + ":" + "\n") - if not TREE: + if SHOWDIR or SHOWFILE : sys.stdout.write("\n") if len(DirList) > 0: DirList.sort() @@ -150,7 +150,6 @@ RECURSE = TRUE SHOWDIR = FALSE SHOWFILE = FALSE - TREE = TRUE if opt == "-v": sys.stdout.write(VERSION + "\n") sys.exit(0)