small modification to warnings

Former-commit-id: 1ee729d27fdd7f394df0ea00efcb9f5e2bf663cd
This commit is contained in:
Jeremy Long
2014-11-05 06:19:43 -05:00
parent 2024881ee1
commit f8c913a3e8

View File

@@ -186,7 +186,7 @@ public class ArchiveAnalyzer extends AbstractFileTypeAnalyzer {
if (tempFileLocation != null && tempFileLocation.exists()) {
LOGGER.log(Level.FINE, "Attempting to delete temporary files");
final boolean success = FileUtils.delete(tempFileLocation);
if (!success && tempFileLocation != null & tempFileLocation.exists()) {
if (!success && tempFileLocation != null && tempFileLocation.exists() && tempFileLocation.list().length > 0) {
LOGGER.log(Level.WARNING, "Failed to delete some temporary files, see the log for more details");
}
}