forked from expo/troggle
[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
This commit is contained in:
parent
99ab1e22e9
commit
39ab4d2514
@ -10,7 +10,7 @@ def listdir(*path):
|
|||||||
root = os.path.join(settings.FILES, *strippedpath )
|
root = os.path.join(settings.FILES, *strippedpath )
|
||||||
l = ""
|
l = ""
|
||||||
#l = root + "\n"
|
#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"
|
#l += str(isdir) + "\n"
|
||||||
for p in os.listdir(root):
|
for p in os.listdir(root):
|
||||||
if os.path.isdir(os.path.join(root, p)):
|
if os.path.isdir(os.path.join(root, p)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user