From b4cd4097a670fde27e3af18a1010499494244b20 Mon Sep 17 00:00:00 2001 From: julian Date: Sun, 18 Jan 2009 22:08:40 +0100 Subject: [PATCH] [svn r8191] Added os.path.isDir prior to os.listdir. Otherwise Julians server through lots of errors. No idea why --- troggle/expo/fileAbstraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/troggle/expo/fileAbstraction.py b/troggle/expo/fileAbstraction.py index 299a4882e..94b8b0c4b 100644 --- a/troggle/expo/fileAbstraction.py +++ b/troggle/expo/fileAbstraction.py @@ -10,7 +10,7 @@ def listdir(*path): root = os.path.join(settings.FILES, *strippedpath ) l = "" #l = root + "\n" - #isdir = os.path.isdir(root) + isdir = os.path.isdir(root) #This seems to be required for os.path.isdir to work... #l += str(isdir) + "\n" for p in os.listdir(root): if os.path.isdir(os.path.join(root, p)):