Hi,
I'm doing the following with haxe 3.2 compiling to neko and running under tora...
<code>
var fileInput = File.read('/path/to/zipfile.zip');
var reader = new Reader(fileInput);
var entries = reader.read();
for(entry in entries)
{
if(StringTools.endsWith(entry.fileName,"/") && entry.dataSize == 0)
{
FileSystem.createDirectory("path/to/" + entry.fileName);
}
else
{
trace(entry.compressed);
var bytes = entry.compressed ? Uncompress.run(entry.data) : entry.data;
File.saveBytes("/path/to/" + entry.fileName, bytes);
}
}
</code>
I get this error for anything where entry.compressed is true, ZLib Error : unknown compression method (-3)
I seem to remember running in to this a couple of years ago, maybe less actually and I resorted to using a zip lib in JS instead of on the server where this stuff should be for my app.
Is this still broken in neko? I'm using the fastcgi tora, is there a new version I can compile that fixes this issue?
thanks,
Tom.