Change one method back.

Cleanup.
This commit is contained in:
apriestman 2021-06-10 10:28:35 -04:00
parent 5a1879217c
commit c9337579f6
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}