End directory names with "/" instead of ":" (which never made sense).
1 parent 961d99d commit f5601d1c20c04c029ed9fa4aa40d6cdebce9bd79
@tundra tundra authored on 3 Jul 2001
Showing 1 changed file
View
12
tdir
import sys
 
# 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
 
sys.stdout.write("\n\n")
 
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:
DirList.sort()