tail-stream icon indicating copy to clipboard operation
tail-stream copied to clipboard

New event "finish"

Open creativesoumik opened this issue 7 years ago • 1 comments

Hi, I'm using this module and its very useful. Can you please add an event "finish" which is triggered once when the fs.watchFile has completed the monitoring. I want to delete the file after the file is completely read once it has been successfully read completely (including all the growing parts).

creativesoumik avatar Sep 20 '17 10:09 creativesoumik

How would you know if a file has stopped growing? There is no way to do this simply by looking at the filesystem. You would have to talk to the process that's writing the file and ask it when it has finished writing.

Juul avatar Oct 19 '17 14:10 Juul