mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
small fix
This commit is contained in:
parent
9c4766d97e
commit
35a353fcde
@ -32,6 +32,7 @@ import org.sleuthkit.datamodel.AbstractFile;
|
||||
import org.sleuthkit.datamodel.FileContentStream;
|
||||
import org.sleuthkit.datamodel.FileContentStream.FileContentProvider;
|
||||
import org.sleuthkit.datamodel.TskCoreException;
|
||||
import org.sleuthkit.datamodel.TskData.CollectedStatus;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -93,6 +94,10 @@ public class CustomFileContentProvider implements FileContentProvider {
|
||||
|
||||
@Override
|
||||
public FileContentStream getFileContentStream(AbstractFile af) throws TskCoreException {
|
||||
if (af.getCollected() != CollectedStatus.YES_REPO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
File localFile = getFilePath(af);
|
||||
if (localFile != null && localFile.exists() && localFile.isFile()) {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user