From 3dbd7629443fd8ede95d6061bf7f1f1a4d16aab5 Mon Sep 17 00:00:00 2001 From: julian Date: Sun, 18 Jan 2009 19:14:15 +0100 Subject: [PATCH] [svn r8186] Made the url file lookup work --- troggle/expo/fileAbstraction.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/troggle/expo/fileAbstraction.py b/troggle/expo/fileAbstraction.py index a14eceb28..44314800f 100644 --- a/troggle/expo/fileAbstraction.py +++ b/troggle/expo/fileAbstraction.py @@ -21,7 +21,12 @@ def listdir(*path): #Ignore non-files and non-directories return l 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):