mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
changed usage of deprecated API
This commit is contained in:
parent
f3da912a57
commit
2ef3bb976a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user