mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
Added size to metadata panel
This commit is contained in:
parent
5cb9522384
commit
149370b9cb
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
* Copyright 2013 Basis Technology Corp.
|
||||
* Copyright 2013-2014 Basis Technology Corp.
|
||||
* Contact: carrier <at> sleuthkit <dot> org
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -20,13 +20,11 @@
|
||||
package org.sleuthkit.autopsy.contentviewers;
|
||||
|
||||
import java.awt.Component;
|
||||
import javax.swing.JTextPane;
|
||||
import org.openide.nodes.Node;
|
||||
import org.openide.util.lookup.ServiceProvider;
|
||||
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer;
|
||||
import org.sleuthkit.datamodel.AbstractFile;
|
||||
import org.sleuthkit.datamodel.TskCoreException;
|
||||
import org.sleuthkit.datamodel.TskData;
|
||||
import org.sleuthkit.datamodel.TskData.TSK_DB_FILES_TYPE_ENUM;
|
||||
|
||||
/**
|
||||
@ -134,6 +132,8 @@ public class Metadata extends javax.swing.JPanel implements DataContentViewer
|
||||
} catch (TskCoreException ex) {
|
||||
addRow(sb, "Name", file.getParentPath() + "/" + file.getName());
|
||||
}
|
||||
|
||||
addRow(sb, "Size", new Long(file.getSize()).toString() );
|
||||
addRow(sb, "File Name Allocation", file.getDirFlagAsString());
|
||||
addRow(sb, "Metadata Allocation", file.getMetaFlagsAsString());
|
||||
|
||||
@ -141,7 +141,7 @@ public class Metadata extends javax.swing.JPanel implements DataContentViewer
|
||||
addRow(sb, "Accessed", file.getAtimeAsDate());
|
||||
addRow(sb, "Created", file.getCrtimeAsDate());
|
||||
addRow(sb, "Changed", file.getCtimeAsDate());
|
||||
|
||||
|
||||
String md5 = file.getMd5Hash();
|
||||
if (md5 == null) {
|
||||
md5 = "Not calculated";
|
||||
|
Loading…
x
Reference in New Issue
Block a user