-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
rename detection without timeout #43
Comments
I think it's basically impossible.
I'm less clear on whether |
Actually, I think you can do this using
|
A couple issues with
|
Yeah I think this is impossible right now given that a goal of the project is to have zero native dependencies like that (unlike stuff like chokidar). It would be ideal though, happy to reopen if it ever becomes possible. |
It seems the current implementation depends on a timeout. Is it possible to avoid this at least in some cases such as when the native watcher is used?
IN_MOVED_FROM
andIN_MOVED_TO
fs.watch
has aneventType
which is either'change'
or'rename'
. It fires for both the old location and new location. Though it seems this is how the underlying inotify API worksinode
number together withbirthtime
? (Add a file "rename" event paulmillr/chokidar#303 (comment))The text was updated successfully, but these errors were encountered: