mirror of
https://github.com/robweber/xbmcbackup.git
synced 2025-06-23 19:14:33 +02:00
copy zip file and open in write mode
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user