mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Change one method back.
Cleanup.
This commit is contained in:
parent
5a1879217c
commit
c9337579f6
@ -225,9 +225,10 @@ class DataSourceUsageAnalyzer extends Extract {
|
||||
* @throws TskCoreException
|
||||
*/
|
||||
private boolean hasAndroidMediaCardRootNames() throws TskCoreException{
|
||||
FileManager fileManager = currentCase.getServices().getFileManager();
|
||||
for (String fileName : ANDROID_MEDIACARD_ROOT_FILENAMES) {
|
||||
for (AbstractFile file : currentCase.getSleuthkitCase().getFileManager().findFilesExactNameExactPath(dataSource, fileName, "/")) { // NON-NLS
|
||||
if (file.getParentPath().equals("/") && file.getName().equalsIgnoreCase(fileName)) { // NON-NLS
|
||||
for (AbstractFile file : fileManager.findFiles(dataSource, fileName, "/")) { // NON-NLS
|
||||
if (file.getParentPath().equals("/") && file.getName().equalsIgnoreCase(fileName)) { // NON-NLS
|
||||
createDataSourceUsageArtifact(Bundle.DataSourceUsage_AndroidMedia());
|
||||
return true;
|
||||
}
|
||||
|
@ -730,7 +730,6 @@ class Firefox extends Extract {
|
||||
// find the downloaded file and create a TSK_ASSOCIATED_OBJECT for it, associating it with the TSK_WEB_DOWNLOAD artifact.
|
||||
for (AbstractFile downloadedFile : currentCase.getSleuthkitCase().getFileManager().findFilesExactNameExactPath(dataSource,
|
||||
FilenameUtils.getName(downloadedFilePath), FilenameUtils.getPath(downloadedFilePath))) {
|
||||
//for (AbstractFile downloadedFile : fileManager.findFiles(dataSource, FilenameUtils.getName(downloadedFilePath), FilenameUtils.getPath(downloadedFilePath))) {
|
||||
bbartifacts.add(createAssociatedArtifact(downloadedFile, webDownloadArtifact));
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user