mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-18 00:42:38 +00:00
[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:
parent
7d1c2b6615
commit
b4cd4097a6
@ -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…
Reference in New Issue
Block a user