docs: public static long zip(File directory, File outputZipFile, boolean fsync) throws IOException
    {
      if (!isZip(outputZipFile.getName())) {
        log.warn("No .zip suffix[%s], putting files from [%s] into it anyway.", outputZipFile, directory);
      }
  
      if (fsync) {
        return FileUtils.writeAtomically(outputZipFile, out -> zip(directory, out));
      } else {
        try (
            final FileChannel fileChannel = FileChannel.open(
                outputZipFile.toPath(),
                StandardOpenOption.WRITE,
                StandardOpenOption.CREATE
            );
            final OutputStream out = Channels.newOutputStream(fileChannel)
        ) {
          return zip(directory, out);
        }
      }
    }