try and encode filenames before writing to zip

This commit is contained in:
Rob Weber 2014-08-04 15:40:14 -05:00
parent a1c91ef51c
commit d7a0e622be

View File

@ -94,7 +94,7 @@ class ZipFileSystem(Vfs):
return False
def put(self,source,dest):
self.zip.write(source,dest,compress_type=zipfile.ZIP_DEFLATED)
self.zip.write(utils.encode(source),utils.encode(dest),compress_type=zipfile.ZIP_DEFLATED)
return True
def rmdir(self,directory):