From 39ab4d25147a8e115fc4f6f05c8246dbe51c3ca0 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:39:05 +0100 Subject: [PATCH] [svn] Added os.path.isDir prior to os.listdir. Otherwise Julians server through lots of errors. No idea why Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8191 by julian @ 1/18/2009 9:08 PM --- expo/fileAbstraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expo/fileAbstraction.py b/expo/fileAbstraction.py index 299a488..94b8b0c 100644 --- a/expo/fileAbstraction.py +++ b/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)):