apemanzilla, on 09 October 2015 - 11:38 PM, said:
I'd be rather more inclined to assume he just used his "real" system interface to dump the zip there, then to extract it to the folder. But who knows? I guess I wouldn't be surprised either way. Java, for example, has zip capabilities built into its standard libraries.
There's nothing stopping coders from implementing a Lua zip compressor for ComputerCraft, though. Yeah, Lua isn't the most efficient language for the job, but by no means does that mean we aren't "able" to do it. From where I'm sitting, there just hasn't been much in the way of a point.
Within ComputerCraft, once you've compressed a file up you've gotta deal with the UTF-mangling that applies to any attempts to transmit the thing into / out of your Minecraft server. My Package script deals with that via base64, but it also applies LZW compression while it's at it, so there still isn't terribly much point in furthermore applying zip (that I can see, at least).













