docs: private void addToZip(String path, Entry entry, ZipOutputStream zos) throws IOException {
          String name = (path.endsWith("/") ? path : path + "/") + entry.getName();
          if (entry.isDirectory()) {
              log.debug("Adding directory to zip: " + name);
  
              zos.putNextEntry(new ZipEntry(name.endsWith("/") ? name : name + "/"));
              for (Entry child : entry.getEntries()) {
                  if (!StringUtils.hasText(path)) {
                      addToZip(entry.getName(), child, zos);
                  } else {
                      addToZip(name, child, zos);
                  }
              }
              zos.closeEntry();
          } else {
              log.debug("Adding file to zip: " + name);
  
              zos.putNextEntry(new ZipEntry(name));
              zos.write(entry.getContent());
              zos.closeEntry();
          }
      }