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,6 +855,7 @@ public class Case {
|
||||
|
||||
/**
|
||||
* Check for existence of certain case sub dirs and create them if needed.
|
||||
*
|
||||
* @param openedCase
|
||||
*/
|
||||
private static void checkSubFolders(Case openedCase) {
|
||||
@ -862,7 +863,7 @@ public class Case {
|
||||
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);
|
||||
@ -871,6 +872,7 @@ public class Case {
|
||||
logger.log(Level.SEVERE, "Error creating modules output dir for the case, dir: " + modulesOutputDir, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//case change helper
|
||||
private static void doCaseChange(Case toChangeTo) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user