static void zipDirectory(Path zipdir, Path destDirectory, String zipSuffix) throws IOException {
        assert FileUtil.controlDirectory(zipdir) && (destDirectory != null);
        if (zipSuffix != null) {
            suffix = zipSuffix;
        } else {
            suffix = ".zip";
        }

        prefixLength = zipdir.toString().lastIndexOf("/") + 1;
        zipOut = new ZipOutputStream(new FileOutputStream(destDirectory.resolve(zipdir.getFileName() + suffix).toFile()));
        createZipFrom(zipdir.toFile());
        zipOut.close();
    }