From 2ef3bb976aad80d95ef801b9fcdacc69cbda0b04 Mon Sep 17 00:00:00 2001 From: Brian Carrier Date: Wed, 22 Oct 2014 23:34:10 -0400 Subject: [PATCH] changed usage of deprecated API --- .../autopsy/examples/SampleDataSourceIngestModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/examples/SampleDataSourceIngestModule.java b/Core/src/org/sleuthkit/autopsy/examples/SampleDataSourceIngestModule.java index f719012610..03c0ab725e 100755 --- a/Core/src/org/sleuthkit/autopsy/examples/SampleDataSourceIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/examples/SampleDataSourceIngestModule.java @@ -99,8 +99,8 @@ class SampleDataSourceIngestModule implements DataSourceIngestModule { // Get files by creation time. long currentTime = System.currentTimeMillis() / 1000; long minTime = currentTime - (14 * 24 * 60 * 60); // Go back two weeks. - List otherFiles = sleuthkitCase.findFilesWhere("crtime > " + minTime); - for (FsContent otherFile : otherFiles) { + List otherFiles = fileManager.findFiles(dataSource, "crtime > " + minTime); + for (AbstractFile otherFile : otherFiles) { if (!skipKnownFiles || otherFile.getKnown() != TskData.FileKnown.KNOWN) { ++fileCount; }