docs: public static void addFileToZip(String path, String srcFile, ZipOutputStream zip, boolean flag) throws IOException {
          File folder = new File(srcFile);
          if (flag) {
              zip.putNextEntry(new ZipEntry(path + "/" + folder.getName() + "/"));
          } else {
              if (folder.isDirectory()) {
                  addFolderToZip(path, srcFile, zip);
              } else {
                  byte[] buf = new byte[1024];
                  int len;
                  try (FileInputStream in = new FileInputStream(srcFile)) {
                      zip.putNextEntry(new ZipEntry(path + "/" + folder.getName()));
                      while ((len = in.read(buf)) > 0) {
                          zip.write(buf, 0, len);
                      }
                  }
              }
          }
      }