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
Do not run the callback when watchfiles
starts up
#226
Comments
It would be great if this were controllable, or if EXISTS_ON_INIT were a separate event type users like @frank-lenormand could filter out. OTOH it's helpful in some applications to get all files that exist and also get future changes to them, as it's tricky to orchestrate the directory walking and then get change events. |
For reference, here is the list of events that https://github.com/inotify-tools/inotify-tools/blob/master/man/inotifywatch.1.in#L182 |
Description
Hi,
It seems that
watchfiles
runs the given command upon starting up.This is unexpected to me, as I use the tool to run a shell command when the watched files are modified.
Example Code
Linux-5.15.0-69-generic-x86_64-with-Ubuntu-20.04-focal
#76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023
The text was updated successfully, but these errors were encountered: