From 0f15fd20127f72f400470ccb05e62573a80fb68e Mon Sep 17 00:00:00 2001
From: substantialnoninfringinguser <substantialnoninfringinguser@gmail.com>
Date: Wed, 13 May 2009 05:37:24 +0100
Subject: [PATCH] [svn] Made the url file lookup work

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8186 by julian @ 1/18/2009 6:14 PM
---
 expo/fileAbstraction.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/expo/fileAbstraction.py b/expo/fileAbstraction.py
index a14eceb..4431480 100644
--- a/expo/fileAbstraction.py
+++ b/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):