summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--expo/fileAbstraction.py7
1 files changed, 6 insertions, 1 deletions
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):