это часть скрипта
Код: Выделить всё
private ZipOutputStream addZipEntry(ZipOutputStream zipOutput, File file, String path) {
if (file.isDirectory() && !path.endsWith('/')) {
path += "/"
}
logger.info("zipfile: added $path")
ZipEntry entry = new ZipEntry(path)
entry.time = file.lastModified()
zipOutput.putNextEntry(entry)
if (file.isFile()) {
def fileInputStream = new FileInputStream(file)
zipOutput
Подробнее здесь: [url]https://stackoverflow.com/questions/79034487/groovy-script-it-gives-me-error-while-handling-files-more-than-2g[/url]
Мобильная версия