Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New event "finish" #17

Open
creativesoumik opened this issue Sep 20, 2017 · 1 comment
Open

New event "finish" #17

creativesoumik opened this issue Sep 20, 2017 · 1 comment

Comments

@creativesoumik
Copy link

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).

@Juul
Copy link
Owner

Juul commented Oct 19, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants