I'm trying to add a folder to the archive like this (according to the documentation):
//file - пустая папка, parametrs - обычный параметры, ничего важного zipStream.putNextEntry(file, parameters); if (file.isDirectory()) { //В документации написано, что, если файл является папкой, //нужно закрыть элемент zipStream.closeEntry(); } But, as a result, the program puts a file with the folder name into my archive: /.
How to add a folder to the archive?