diff --git a/resources/lib/backup.py b/resources/lib/backup.py index df97d8c..cb18f73 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -38,7 +38,7 @@ class XbmcBackup: skip_advanced = False #if we should check for the existance of advancedsettings in the restore def __init__(self): - self.xbmc_vfs = XBMCFileSystem(xbmc.translatePath('special://home')) + self.xbmc_vfs = XBMCFileSystem('special://home') self.configureRemote() utils.log(utils.getString(30046)) @@ -237,7 +237,7 @@ class XbmcBackup: self.backupFiles(fileGroup['files'],self.xbmc_vfs,self.remote_vfs) #reset remote and xbmc vfs - self.xbmc_vfs.set_root(xbmc.translatePath("special://home")) + self.xbmc_vfs.set_root("special://home/") self.remote_vfs.set_root(orig_base_path) if(utils.getSetting("compress_backups") == 'true'): @@ -287,7 +287,7 @@ class XbmcBackup: #set the new remote vfs and fix xbmc path self.remote_vfs = XBMCFileSystem(xbmc.translatePath("special://temp/" + self.restore_point.split(".")[0] + "/")) - self.xbmc_vfs.set_root(xbmc.translatePath("special://home")) + self.xbmc_vfs.set_root("special://home/") #for restores remote path must exist diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index 5d4b345..3fc5c2a 100644 --- a/resources/lib/vfs.py +++ b/resources/lib/vfs.py @@ -62,10 +62,11 @@ class XBMCFileSystem(Vfs): return xbmcvfs.listdir(directory) def mkdir(self,directory): - return xbmcvfs.mkdir(directory) + return xbmcvfs.mkdir(xbmc.translatePath(directory)) def put(self,source,dest): - return xbmcvfs.copy(source,dest) + utils.log(dest) + return xbmcvfs.copy(xbmc.translatePath(source),xbmc.translatePath(dest)) def rmdir(self,directory): return xbmcvfs.rmdir(directory,True)