diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 22f597baec..f28585202b 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -855,20 +855,22 @@ public class Case { /** * Check for existence of certain case sub dirs and create them if needed. - * @param openedCase + * + * @param openedCase */ private static void checkSubFolders(Case openedCase) { String modulesOutputDir = openedCase.getModulesOutputDirAbsPath(); File modulesOutputDirF = new File(modulesOutputDir); if (!modulesOutputDirF.exists()) { logger.log(Level.INFO, "Creating modules output dir for the case."); - } - try { - if (! modulesOutputDirF.mkdir() ) { - logger.log(Level.SEVERE, "Error creating modules output dir for the case, dir: " + modulesOutputDir); + + try { + if (!modulesOutputDirF.mkdir()) { + logger.log(Level.SEVERE, "Error creating modules output dir for the case, dir: " + modulesOutputDir); + } + } catch (SecurityException e) { + logger.log(Level.SEVERE, "Error creating modules output dir for the case, dir: " + modulesOutputDir, e); } - } catch (SecurityException e) { - logger.log(Level.SEVERE, "Error creating modules output dir for the case, dir: " + modulesOutputDir, e); } }