mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
changed usage of deprecated API
This commit is contained in:
@@ -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<FsContent> otherFiles = sleuthkitCase.findFilesWhere("crtime > " + minTime);
|
||||
for (FsContent otherFile : otherFiles) {
|
||||
List<AbstractFile> otherFiles = fileManager.findFiles(dataSource, "crtime > " + minTime);
|
||||
for (AbstractFile otherFile : otherFiles) {
|
||||
if (!skipKnownFiles || otherFile.getKnown() != TskData.FileKnown.KNOWN) {
|
||||
++fileCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user