changed usage of deprecated API

This commit is contained in:
Brian Carrier 2014-10-22 23:34:10 -04:00
parent f3da912a57
commit 2ef3bb976a

View File

@ -99,8 +99,8 @@ class SampleDataSourceIngestModule implements DataSourceIngestModule {
// Get files by creation time. // Get files by creation time.
long currentTime = System.currentTimeMillis() / 1000; long currentTime = System.currentTimeMillis() / 1000;
long minTime = currentTime - (14 * 24 * 60 * 60); // Go back two weeks. long minTime = currentTime - (14 * 24 * 60 * 60); // Go back two weeks.
List<FsContent> otherFiles = sleuthkitCase.findFilesWhere("crtime > " + minTime); List<AbstractFile> otherFiles = fileManager.findFiles(dataSource, "crtime > " + minTime);
for (FsContent otherFile : otherFiles) { for (AbstractFile otherFile : otherFiles) {
if (!skipKnownFiles || otherFile.getKnown() != TskData.FileKnown.KNOWN) { if (!skipKnownFiles || otherFile.getKnown() != TskData.FileKnown.KNOWN) {
++fileCount; ++fileCount;
} }