local filesDir = _files:getFilesDir() local src = _files:buildFile(function(fileBuilder) fileBuilder:setPath(filesDir, "tmp/abc.txt") end) src:writeText("hello world", "UTF-8") local dest = _files:buildFile(function(fileBuilder) fileBuilder:setPath(filesDir, "tmp/abc.zip") end) _console:log(_files:zipFile(src, dest, nil)) _console:log(dest:exists() and dest:isFile()) src:delete() dest:delete()