mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
fix create modulesout only if it doesn't exist
This commit is contained in:
parent
6816a1eaf1
commit
d583722da5
@ -855,20 +855,22 @@ public class Case {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for existence of certain case sub dirs and create them if needed.
|
* Check for existence of certain case sub dirs and create them if needed.
|
||||||
* @param openedCase
|
*
|
||||||
|
* @param openedCase
|
||||||
*/
|
*/
|
||||||
private static void checkSubFolders(Case openedCase) {
|
private static void checkSubFolders(Case openedCase) {
|
||||||
String modulesOutputDir = openedCase.getModulesOutputDirAbsPath();
|
String modulesOutputDir = openedCase.getModulesOutputDirAbsPath();
|
||||||
File modulesOutputDirF = new File(modulesOutputDir);
|
File modulesOutputDirF = new File(modulesOutputDir);
|
||||||
if (!modulesOutputDirF.exists()) {
|
if (!modulesOutputDirF.exists()) {
|
||||||
logger.log(Level.INFO, "Creating modules output dir for the case.");
|
logger.log(Level.INFO, "Creating modules output dir for the case.");
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
if (! modulesOutputDirF.mkdir() ) {
|
if (!modulesOutputDirF.mkdir()) {
|
||||||
logger.log(Level.SEVERE, "Error creating modules output dir for the case, dir: " + modulesOutputDir);
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user