diff --git a/tdir b/tdir index 0ed1478..b28a98b 100755 --- a/tdir +++ b/tdir @@ -13,7 +13,7 @@ # Version info -VERSION = "$Id: tdir,v 1.58 2001/07/03 20:29:19 tundra Exp $" +VERSION = "$Id: tdir,v 1.59 2001/07/04 00:02:12 tundra Exp $" # Booleans @@ -76,7 +76,11 @@ def DisplayOutput(dir, DirList, FileList): - sys.stdout.write(dir.replace("\\", "/") + ":" + "\n") + if (dir[-1] != "/") and (dir[-1] != "\\"): + DIREND = "/\n" + else: + DIREND = "\n" + sys.stdout.write(dir.replace("\\", "/") + DIREND) if SHOWDIR or SHOWFILE : sys.stdout.write("\n") if len(DirList) > 0: