write the file based on the true source xbmcvfs.File

This commit is contained in:
Rob Weber 2014-08-08 10:26:39 -05:00
parent 38cc67a54d
commit b14fda20fb

View File

@ -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):