1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

Merge pull request #930 from karlmortensen/photorec_add_datasource_id

Photorec add datasource ID
This commit is contained in:
Richard Cordovano
2014-10-31 11:50:25 -04:00

View File

@@ -117,11 +117,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);