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