1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-08-30 16:11:57 +00:00

bug fixes

This commit is contained in:
Greg DiCristofaro
2021-07-20 13:50:03 -04:00
parent c32ab89922
commit 928ef9e33d
3 changed files with 9 additions and 12 deletions

View File

@@ -37,6 +37,7 @@
import os
import codecs
from java.lang import System
from java.util.logging import Level
from org.sleuthkit.datamodel import TskData
@@ -72,11 +73,11 @@ class CSVReportModule(GeneralReportModuleAdapter):
# The 'baseReportDir' object being passed in is a string with the directory that reports are being stored in. Report should go into baseReportDir + getRelativeFilePath().
# The 'progressBar' object is of type ReportProgressPanel.
# See: http://sleuthkit.org/autopsy/docs/api-docs/latest/classorg_1_1sleuthkit_1_1autopsy_1_1report_1_1_report_progress_panel.html
def generateReport(self, baseReportDir, progressBar):
def generateReport(self, reportSettings, progressBar):
# Open the output file.
fileName = os.path.join(baseReportDir, self.getRelativeFilePath())
report = open(fileName, 'w')
fileName = os.path.join(reportSettings.getReportDirectoryPath(), self.getRelativeFilePath())
report = codecs.open(fileName, "w", "utf-8")
# Query the database for the files (ignore the directories)
sleuthkitCase = Case.getCurrentCase().getSleuthkitCase()