diff --git a/addon.xml b/addon.xml index 66e786d..c8afa29 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@ + name="XBMC Backup" version="0.0.8" provider-name="robweber"> diff --git a/changelog.txt b/changelog.txt index 504d68f..175e091 100644 --- a/changelog.txt +++ b/changelog.txt @@ -23,3 +23,7 @@ File Selection is now followed for both backup and restore options [b]Version 0.0.7[/b] removed "restore.txt" file and now write file listing to memory list instead + +[b]Version 0.0.8[/b] + +modified vfs.py script to exclude handling zip files as directories, added keymap and peripheral data folders in the "config" section diff --git a/default.py b/default.py index 0bd1041..54eb68e 100644 --- a/default.py +++ b/default.py @@ -44,11 +44,17 @@ class FileManager: self.walkTree(self.walk_path + "userdata/Thumbnails") if(Addon.getSetting("backup_config") == "true"): - #this one is an oddity - configFiles = os.listdir(self.walk_path + "userdata/") + self.addFile("-userdata/keymaps") + self.walkTree(self.walk_path + "userdata/keymaps") + + self.addFile("-userdata/peripheral_data") + self.walkTree(self.walk_path + "userdata/peripheral_data") + + #this part is an oddity + configFiles = vfs.listdir(self.walk_path + "userdata/",extra_metadata=True) for aFile in configFiles: - if(aFile.endswith(".xml")): - self.addFile("userdata/" + aFile) + if(aFile['file'].endswith(".xml")): + self.addFile("userdata/" + aFile['file']) def walkTree(self,directory): for (path, dirs, files) in vfs.walk(directory):