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()) local unzipDir = _files:buildFile(function(fileBuilder) fileBuilder:setPath(filesDir, "tmp/abc") end) _console:log(_files:unzipFile(dest, unzipDir, nil)) _console:log(unzipDir:exists() and unzipDir:isDirectory()) src:delete() dest:delete() unzipDir:deleteRecursively()