diff --git a/tdir b/tdir index cd4ecc4..154ca2e 100755 --- a/tdir +++ b/tdir @@ -12,7 +12,7 @@ # Version info -VERSION = "$Id: tdir,v 1.72 2018/05/11 17:42:04 tundra Exp $" +VERSION = "$Id: tdir,v 1.73 2018/06/17 00:00:00 tundra Exp $" # Supporting Functions @@ -251,6 +251,7 @@ sys.stdout.write(root + " is not a directory!\n") sys.exit(2) if RECURSE: - os.path.walk(root, BuildFileList, None) + for root, dir, files in os.walk(root): + print(root + os.sep) else: BuildFileList(None, root, os.listdir(root))