mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
code review updates
This commit is contained in:
parent
7dff89d8fb
commit
844e8b0e92
@ -335,7 +335,7 @@ public final class ImageGalleryController {
|
|||||||
*/
|
*/
|
||||||
public synchronized void setCase(Case c) {
|
public synchronized void setCase(Case c) {
|
||||||
|
|
||||||
this.db = DrawableDB.getDrawableDB(c.getModulesOutputDirAbsPath() + File.separator + IMAGEGALLERY, this);
|
this.db = DrawableDB.getDrawableDB(c.getModuleDirectory() + File.separator + IMAGEGALLERY, this);
|
||||||
|
|
||||||
setListeningEnabled(ImageGalleryModule.isEnabledforCase(c));
|
setListeningEnabled(ImageGalleryModule.isEnabledforCase(c));
|
||||||
setStale(ImageGalleryModule.isCaseStale(c));
|
setStale(ImageGalleryModule.isCaseStale(c));
|
||||||
|
@ -114,7 +114,7 @@ class PerCaseProperties {
|
|||||||
* file doesn't exist.
|
* file doesn't exist.
|
||||||
*/
|
*/
|
||||||
private synchronized String getPropertyPath(String moduleName) {
|
private synchronized String getPropertyPath(String moduleName) {
|
||||||
return c.getModulesOutputDirAbsPath() + File.separator + moduleName + File.separator + moduleName + ".properties"; //NON-NLS
|
return c.getModuleDirectory() + File.separator + moduleName + File.separator + moduleName + ".properties"; //NON-NLS
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -650,7 +650,7 @@ public class Server {
|
|||||||
* @return absolute path to index dir
|
* @return absolute path to index dir
|
||||||
*/
|
*/
|
||||||
String getIndexDirPath(Case theCase) {
|
String getIndexDirPath(Case theCase) {
|
||||||
String indexDir = theCase.getModulesOutputDirAbsPath() +
|
String indexDir = theCase.getModuleDirectory() +
|
||||||
File.separator + "keywordsearch" + File.separator + "data"; //NON-NLS
|
File.separator + "keywordsearch" + File.separator + "data"; //NON-NLS
|
||||||
return indexDir;
|
return indexDir;
|
||||||
}
|
}
|
||||||
|
@ -209,7 +209,7 @@ public final class RAImageIngestModule implements DataSourceIngestModule {
|
|||||||
* @return Path to directory
|
* @return Path to directory
|
||||||
*/
|
*/
|
||||||
protected static String getRAOutputPath(Case a_case, String mod) {
|
protected static String getRAOutputPath(Case a_case, String mod) {
|
||||||
String tmpDir = a_case.getModulesOutputDirAbsPath() + File.separator + "RecentActivity" + File.separator + mod; //NON-NLS
|
String tmpDir = a_case.getModuleDirectory() + File.separator + "RecentActivity" + File.separator + mod; //NON-NLS
|
||||||
File dir = new File(tmpDir);
|
File dir = new File(tmpDir);
|
||||||
if (dir.exists() == false) {
|
if (dir.exists() == false) {
|
||||||
dir.mkdirs();
|
dir.mkdirs();
|
||||||
|
@ -83,7 +83,7 @@ class ScalpelCarverIngestModule implements FileIngestModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make sure module output directory exists; create it if it doesn't
|
// make sure module output directory exists; create it if it doesn't
|
||||||
moduleOutputDirPath = Case.getCurrentCase().getModulesOutputDirAbsPath()
|
moduleOutputDirPath = Case.getCurrentCase().getModuleDirectory()
|
||||||
+ File.separator + MODULE_OUTPUT_DIR_NAME;
|
+ File.separator + MODULE_OUTPUT_DIR_NAME;
|
||||||
File moduleOutputDir = new File(moduleOutputDirPath);
|
File moduleOutputDir = new File(moduleOutputDirPath);
|
||||||
if (!moduleOutputDir.exists()) {
|
if (!moduleOutputDir.exists()) {
|
||||||
|
@ -252,7 +252,7 @@ public final class ThunderbirdMboxFileIngestModule implements FileIngestModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getModuleOutputPath() {
|
public static String getModuleOutputPath() {
|
||||||
String outDir = Case.getCurrentCase().getModulesOutputDirAbsPath() + File.separator
|
String outDir = Case.getCurrentCase().getModuleDirectory() + File.separator
|
||||||
+ EmailParserModuleFactory.getModuleName();
|
+ EmailParserModuleFactory.getModuleName();
|
||||||
File dir = new File(outDir);
|
File dir = new File(outDir);
|
||||||
if (dir.exists() == false) {
|
if (dir.exists() == false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user