1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-08-30 08:01:57 +00:00

updated sample to do name comparison lowercase and restrict to end

This commit is contained in:
Brian Carrier
2015-06-26 17:14:24 -04:00
parent 53fac9b8a4
commit 1592f4c814

View File

@@ -114,7 +114,7 @@ class SampleJythonFileIngestModule(FileIngestModule):
return IngestModule.ProcessResult.OK
# For an example, we will flag files with .txt in the name and make a blackboard artifact.
if file.getName().find(".txt") != -1:
if file.getName().lower().endswith(".txt"):
self.log(Level.INFO, "Found a text file: " + file.getName())
self.filesFound+=1