mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Add size and path to exif artifact display
This commit is contained in:
parent
5c2273c687
commit
cc3d1d59b8
@ -312,7 +312,11 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
|
|||||||
"BlackboardArtifactNode.createSheet.artifactDetails.name=Artifact Details",
|
"BlackboardArtifactNode.createSheet.artifactDetails.name=Artifact Details",
|
||||||
"BlackboardArtifactNode.artifact.displayName=Artifact",
|
"BlackboardArtifactNode.artifact.displayName=Artifact",
|
||||||
"BlackboardArtifactNode.createSheet.artifactMD5.displayName=MD5 Hash",
|
"BlackboardArtifactNode.createSheet.artifactMD5.displayName=MD5 Hash",
|
||||||
"BlackboardArtifactNode.createSheet.artifactMD5.name=MD5 Hash"})
|
"BlackboardArtifactNode.createSheet.artifactMD5.name=MD5 Hash",
|
||||||
|
"BlackboardArtifactNode.createSheet.fileSize.name=Size",
|
||||||
|
"BlackboardArtifactNode.createSheet.fileSize.displayName=Size",
|
||||||
|
"BlackboardArtifactNode.createSheet.path.displayName=Path",
|
||||||
|
"BlackboardArtifactNode.createSheet.path.name=Path"})
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Sheet createSheet() {
|
protected Sheet createSheet() {
|
||||||
@ -453,6 +457,31 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If EXIF, add props for file size and path
|
||||||
|
if (artifactTypeId == BlackboardArtifact.ARTIFACT_TYPE.TSK_METADATA_EXIF.getTypeID()) {
|
||||||
|
|
||||||
|
String size = ""; //NON-NLS
|
||||||
|
String path = ""; //NON-NLS
|
||||||
|
if (associated instanceof AbstractFile) {
|
||||||
|
AbstractFile af = (AbstractFile) associated;
|
||||||
|
size = Long.toString(af.getSize());
|
||||||
|
try {
|
||||||
|
path = af.getUniquePath();
|
||||||
|
} catch (TskCoreException ex) {
|
||||||
|
path = af.getParentPath();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sheetSet.put(new NodeProperty<>(NbBundle.getMessage(BlackboardArtifactNode.class, "BlackboardArtifactNode.createSheet.fileSize.name"),
|
||||||
|
NbBundle.getMessage(BlackboardArtifactNode.class, "BlackboardArtifactNode.createSheet.fileSize.displayName"),
|
||||||
|
NO_DESCR,
|
||||||
|
size));
|
||||||
|
sheetSet.put(new NodeProperty<>(
|
||||||
|
NbBundle.getMessage(BlackboardArtifactNode.class, "BlackboardArtifactNode.createSheet.path.name"),
|
||||||
|
NbBundle.getMessage(BlackboardArtifactNode.class, "BlackboardArtifactNode.createSheet.path.displayName"),
|
||||||
|
NO_DESCR,
|
||||||
|
path));
|
||||||
|
}
|
||||||
|
|
||||||
addTagProperty(sheetSet);
|
addTagProperty(sheetSet);
|
||||||
|
|
||||||
return sheet;
|
return sheet;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user