From 5163152ce89662b4a10c94272efc84c96fce15b1 Mon Sep 17 00:00:00 2001 From: robweber Date: Fri, 25 May 2012 16:02:23 -0500 Subject: [PATCH] when using vfs module need to cut off full file path --- default.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.py b/default.py index 54eb68e..2fdc3ce 100644 --- a/default.py +++ b/default.py @@ -53,8 +53,9 @@ class FileManager: #this part is an oddity configFiles = vfs.listdir(self.walk_path + "userdata/",extra_metadata=True) for aFile in configFiles: + xbmc.log(aFile['file'][len(self.walk_path):]) if(aFile['file'].endswith(".xml")): - self.addFile("userdata/" + aFile['file']) + self.addFile(aFile['file'][len(self.walk_path):]) def walkTree(self,directory): for (path, dirs, files) in vfs.walk(directory):