return logFile;
}
private void saveFile(String targetDir, String fileName, VFSContainer tmpDir, List<VFSItem> files, String email, String emailI18nSubkey, Locale locale) {
File file = new File(targetDir, fileName);
VFSLeaf exportFile = new LocalFileImpl(file);
if (!ZipUtil.zip(files, exportFile)) {
// cleanup zip file
exportFile.delete();
} else {
// success
sendEMail(email, locale, emailI18nSubkey);
}
removeTemporaryFolder(tmpDir);