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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user