..
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   clientui/http.py
#
diff --git a/clientui/http.py b/clientui/http.py
index 5974362..d783e25 100644
--- a/clientui/http.py
+++ b/clientui/http.py
@@ -92,7 +92,7 @@ class ClientUIServer (BasePlugin, HttpPlugin):
         realpath = fs.proxy_path(basepath)
 
         if os.path.isdir(realpath):
-            for i in list(fs.listdir(path)):
+            for i in list(fs.listdir(basepath)):
                 fullpath = os.path.join(basepath, i)
                 if os.path.isdir(fs.proxy_path(fullpath)):
                     directories.append(i)
