zip folder of arbitrary size

Mark Waddingham mark at livecode.com
Wed Jan 3 11:41:52 EST 2018


On 2018-01-03 17:25, Ben Rubinstein via use-livecode wrote:
> I want an app running unattended on a Windows VM to zip up a folder
> (on a regular basis).
> 
> I've not used the revZip library before: when I look at it the first
> thing I notice is that first step, according to the Dictionary is:
> Use the revZipOpenArchive command to load a zip archive into memory
> 
> It's the "into memory" part that bothers me. The folder is probably
> around 125 - 150MB in total; the zip file I'd expect to be 25MB. I
> know that we sometimes run into horrible memory problems on these
> Windows VMs, so this makes me nervous.

It doesn't load the whole archive into memory - just the 'central 
directory' - which is the list of files which are present in the zip.

Extracting data from the zip file occurs when you request it - and then 
only the bits you ask for.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the use-livecode mailing list