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

edge case where watch does not see a delete event. #36

Open
dominictarr opened this issue Sep 15, 2012 · 0 comments
Open

edge case where watch does not see a delete event. #36

dominictarr opened this issue Sep 15, 2012 · 0 comments

Comments

@dominictarr
Copy link

watch misses a delete event if the file is created, but not changed.

touch hello
# wait for watch to see it.
rm hello
# watch won't emit a removed event..

however, watch does see this...

touch hello
date > hello
rm hello

it's just a problem with the logic in watch, but not fs.watchFile,
this will generate created, then a modified event

touch hello
rm hello
touch hello

PR forthcoming.

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

1 participant