Unzipping on sys Platforms

i’ve been trying to unzip a file on haxe but i cant find a way because all the functions are not available on sys platforms

Hi,

You could try something like this instead:

File.saveBytes(zipPath, zipBytes);
Sys.command("unzip",['-qq','-o',zipPath,'-d',scanDir]);
// cycle through zip and store paths to individual scans.
recursiveLoop(scanDir);

There is also an example on code.haxe.org !

Ive been using this without issue (so far):

I thought the OP was talking about a situation where the haxe method didn’t work on sys targets. Ian’s way is best, using the Reader if you can…