mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +01:00
write the file based on the true source xbmcvfs.File
This commit is contained in:
parent
38cc67a54d
commit
b14fda20fb
@ -94,7 +94,11 @@ class ZipFileSystem(Vfs):
|
||||
return False
|
||||
|
||||
def put(self,source,dest):
|
||||
self.zip.write(source,utils.encode(dest),compress_type=zipfile.ZIP_DEFLATED)
|
||||
|
||||
aFile = xbmcvfs.File(xbmc.translatePath(source),'r')
|
||||
|
||||
self.zip.writestr(utils.encode(dest),aFile.read(),compress_type=zipfile.ZIP_DEFLATED)
|
||||
|
||||
return True
|
||||
|
||||
def rmdir(self,directory):
|
||||
|
Loading…
Reference in New Issue
Block a user