mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +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
|
return False
|
||||||
|
|
||||||
def put(self,source,dest):
|
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
|
return True
|
||||||
|
|
||||||
def rmdir(self,directory):
|
def rmdir(self,directory):
|
||||||
|
Loading…
Reference in New Issue
Block a user