include("import") func doOpen(_data) // TODO fvar(_omode, _cmode) need_zipfile() if (OpenMode == 0) _omode = 'r' end if (OpenMode == 1) _omode = 'w' end if (OpenMode == 2) _omode = 'a' end if (isdef(Compression)) _cmode = 'zipfile.ZIP_STORED' else _cmode = 'zipfile.ZIP_DEFLATED' end println(tFile && ' = zipfile.ZipFile(' && ArcName && ', ' && str( _omode) && ', ' && _cmode && ')') end func doAdd(_data) need_zipfile() println(tFile && '.write(' && FileName && ')') end func doExtract(_data) fvar(s) need_zipfile() event(onExtract, tFile && '.read(' && FileName && ')') end func doClose(_data) need_zipfile() println(tFile && '.close()') end func Names(_data) need_zipfile() return (tFile && '.namelist()') end