[svn r8191] Added os.path.isDir prior to os.listdir. Otherwise Julians server

through lots of errors.  No idea why
This commit is contained in:
julian 2009-01-18 22:08:40 +01:00
parent 7d1c2b6615
commit b4cd4097a6

View File

@ -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)):