[svn r8186] Made the url file lookup work

This commit is contained in:
julian 2009-01-18 19:14:15 +01:00
parent dfbdb46a1b
commit 3dbd762944

View File

@ -21,7 +21,12 @@ def listdir(*path):
#Ignore non-files and non-directories #Ignore non-files and non-directories
return l return l
except: except:
return urllib.urlopen(settings.FILES + "listdir/" + reduce(urljoin, strippedpath)) if strippedpath:
c = reduce(urljoin, strippedpath)
else:
c = ""
print strippedpath, c
return urllib.urlopen(settings.FILES + "listdir/" + c)
def readFile(*path): def readFile(*path):