copy zip file and open in write mode

This commit is contained in:
Rob Weber
2014-07-31 17:29:59 -05:00
parent c49aebeba1
commit 933fdbdf09
2 changed files with 18 additions and 8 deletions

View File

@ -18,7 +18,7 @@ class Vfs:
def set_root(self,rootString):
old_root = self.root_path
self.root_path = rootString
#fix slashes
self.root_path = self.root_path.replace("\\","/")
@ -78,7 +78,7 @@ class ZipFileSystem(Vfs):
def __init__(self,rootString,mode):
self.root_path = ""
self.zip = zipfile.ZipFile(xbmc.translatePath(utils.data_dir() + "xbmc_backup_temp.zip"),mode=mode)
self.zip = zipfile.ZipFile(rootString,mode=mode)
def listdir(self,directory):