From 1741c74349c5ddf1e85077f0e022aa3cf50f5f5f Mon Sep 17 00:00:00 2001 From: adam-m Date: Tue, 12 Feb 2013 12:06:38 -0500 Subject: [PATCH] add API to case to get modules output dir --- .../sleuthkit/autopsy/casemodule/Case.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 9841dc6930..c34bbaf254 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -553,6 +553,26 @@ public class Case { } } + /** + * Get absolute module output directory path where modules should save their permanent data + * The directory is a subdirectory of this case dir. + * @return absolute path to the module output dir + */ + public String getModulesOutputDirectoryPath() { + return this.getCaseDirectory() + File.separator + getModulesOutputDirectory(); + } + + + /** + * Get relative (with respect to case dir) + * module output directory path where modules should save their permanent data + * The directory is a subdirectory of this case dir. + * @return relative path to the module output dir + */ + public String getModulesOutputDirectory() { + return "ModuleOutput"; + } + /** * get the PropertyChangeSupport of this class * @return PropertyChangeSupport