Hi.
I want to use Bro to extract files. After extraction these files will undergo some post-processing (e.g. lookup in a db of known files). Can I be sure, that a file logged in files.log with its hash has been written to disk completely?
If not, I have two ideas how to solve this:
- use a temporary filename until the file is completely written (like a prefix/postfix). exclude temporary files from post-processing.
- emit an appropriate signal from Extract::~Extract() after the file is closed.
I would be happy to implement a solution.
Franky