From 2f529c1cc0176f0e8a5e6c1acb1eb8ba8f9ebe9d Mon Sep 17 00:00:00 2001 From: adam-m Date: Wed, 9 Jan 2013 13:51:38 -0500 Subject: [PATCH] add source file path to result content view for consistency --- .../autopsy/datamodel/ArtifactStringContent.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java b/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java index 1a6f272d28..ef75b1de5d 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java @@ -104,6 +104,22 @@ public class ArtifactStringContent implements StringContent { buffer.append(""); buffer.append(""); } + + //add file path + buffer.append(""); + buffer.append("Source File"); + buffer.append(""); + final Content content = getAssociatedContent(wrapped); + buffer.append(content.getName()); + buffer.append(""); + buffer.append(""); + buffer.append(""); + buffer.append("Source File Path"); + buffer.append(""); + buffer.append(DataConversion.getformattedPath(ContentUtils.getDisplayPath(content), 0, 1)); + buffer.append(""); + buffer.append(""); + buffer.append(""); buffer.append(""); return buffer.toString();