Hi all,
I'm developing a Jython file ingest module in order to automatically extract files (filtered by mime-type) from a data source. I chose this directory: "C:\autopsy\case\path\Export\$dataSourceName\" as directory output and I would like to implement a JFileChooser to change the destination directory.
However, I'm facing a problem with the archive extraction feature. The Embedded File Extractor ingest module extracts the archive contents in a hardcoded directory and there's no possible change it by GUI. Furthermore, the SevenZipExtractor and ImageExtractor classes are defined "package private", so I can't import them from my module to customize the directory output.
So, all the files will be extracted into "...\Export\$dataSourceName\" directory (or the one chose by user) but all the archives will be into module directory output, mixed with those of the other data sources.
Since I must to perform this extraction on about 100 (or more) device images and I will run my ingest module on multiple images simultaneously, I really can't re-organize the extracted archive in their respective data source (or user chose) directory. It will be a very expensive and mechanical activity.
I thoughts of two solutions:
1) change the access specifiers of the SevenZipExtractor and ImageExtractor classes, in order to make them accessible.
2) create a browse button in the embedded file extractor panel settings, in order to choose the directory output.
Any other suggestions? I'm available for pull request.
Cube