Github user phrocker commented on the issue: https://github.com/apache/nifi-minifi-cpp/pull/181 @achristianson statefulness helps use RAII to eliminate temp files, whereas other techniques don't do this. It's a balance between cleaning them up automatically or requiring the user to. As I saw previously with the code I removed, this was not done, and I fear most users won't properly do this. I'm with you. My initial implementation was just a simple create file without tracking. I'm still on the fence about that. We should require users to remove files, but that's not an expectation from creating temp files.
---