My Problem is that I can not be sure when a file has been successfully written to and the file has been closed. Consider the following case:
var fs = require(\'f
Do your file's post-processing in the writeable stream's close event:
writeable stream's
outs.on('close', function() { <> });
Also, no need for the destroySoon after the end, they are one and the same.
destroySoon
end