Skip to content
Snippets Groups Projects
Commit bdd49208 authored by Brian Carrier's avatar Brian Carrier
Browse files

Merge pull request #1515 from sidheshenator/exclude_virtual_files

exclude virtual files from file type search
parents 7a84eb21 de5463f6
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,8 @@ public String detect(AbstractFile file) throws TskCoreException { ...@@ -167,7 +167,8 @@ public String detect(AbstractFile file) throws TskCoreException {
// as octet-stream. // as octet-stream.
if (!file.isFile() || file.getSize() <= 0 if (!file.isFile() || file.getSize() <= 0
|| (file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS) || (file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS)
|| (file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS)) { || (file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS)
|| (file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.VIRTUAL_DIR)) {
return MimeTypes.OCTET_STREAM; return MimeTypes.OCTET_STREAM;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment