// Get a list of the files to zip
File directoryToZip = new File(directoryToZipPath);
zipFileItem(directoryToZipPath, zipOutputStream, directoryToZip, null);
return zipFile;
} catch (FileNotFoundException e) {
throw new UnexpectedException(e);
} finally {
try {
zipOutputStream.close();
} catch (IOException e) {
LOGGER.warn("Exception thrown when the zipOutputStream was being closed", e);