Skip to content

Commit

Permalink
Update mft_analyzer.py
Browse files Browse the repository at this point in the history
Closes #142 , thanks!

Signed-off-by: Benjamin Cance <[email protected]>
  • Loading branch information
rowingdude authored Oct 8, 2024
1 parent 94f9db6 commit efcefc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/analyzeMFT/mft_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ async def write_output(self) -> None:
await FileWriters.write_sqlite(list(self.mft_records.values()), self.output_file)
elif self.export_format == "tsk":
await FileWriters.write_tsk(list(self.mft_records.values()), self.output_file)
elif self.export_format == "body":
await FileWriters.write_body(list(self.mft_records.values()), self.output_file)
elif self.export_format == "timeline":
await FileWriters.write_timeline(list(self.mft_records.values()), self.output_file)
else:
print(f"Unsupported export format: {self.export_format}")

Expand Down Expand Up @@ -295,4 +299,4 @@ async def write_sqlite(self):
''', (record.recordnum, record.filename, record.get_parent_record_num()))

conn.commit()
conn.close()
conn.close()

0 comments on commit efcefc0

Please sign in to comment.