From b60337836c7dd3a295445e8f7e21a2862fbcab93 Mon Sep 17 00:00:00 2001 From: Karl Mortensen Date: Thu, 30 Oct 2014 15:54:44 -0400 Subject: [PATCH] Prepend datasource ID to datestamped folder name --- .../photoreccarver/PhotoRecCarverFileIngestModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java b/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java index d151c2f58c..66c9b661cd 100755 --- a/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java @@ -109,11 +109,11 @@ final class PhotoRecCarverFileIngestModule implements FileIngestModule { // the module output directory for the current case. DateFormat dateFormat = new SimpleDateFormat("MM-dd-yyyy-HH-mm-ss-SSSS"); // NON-NLS Date date = new Date(); - Path outputDirPath = Paths.get(this.rootOutputDirPath.toAbsolutePath().toString(), dateFormat.format(date)); + String folder = this.context.getDataSource().getId() + "_" + dateFormat.format(date); + Path outputDirPath = Paths.get(this.rootOutputDirPath.toAbsolutePath().toString(), folder); Files.createDirectories(outputDirPath); - // A temp subdirectory is also created as a location for writing - // unallocated space files to disk. + // A temp subdirectory is also created as a location for writing unallocated space files to disk. Path tempDirPath = Paths.get(outputDirPath.toString(), PhotoRecCarverFileIngestModule.TEMP_DIR_NAME); Files.createDirectory(tempDirPath);