-
Notifications
You must be signed in to change notification settings - Fork 114
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
When renaming file, is a create event fires for the old filename (Windows) #26
Comments
Bizarre! Will try to repro. |
If it helps, I'm using your second example. |
Any update on this? |
Sorry that I must bring this issue up again. I am using Win 7 and Node v6.11.0 and on all rename Operations the actions "rename" and "create" are fired. I tracked the problem down to nsfw/src/win32/Watcher.cpp around Line 209 If i rename a file - the events FILE_ACTION_RENAMED_OLD_NAME and FILE_ACTION_RENAMED_NEW_NAME are fired. Could you explain the case where only FILE_ACTION_RENAMED_NEW_NAME is fired ? thanks in advance |
I have the issue as well. As a stopgap, here is a function I use to eliminate these annoying events, as well as de-duplicate events, and parasitic MODIFIED events on freshly renamed files:
|
I also reproduce this issue on Windows 10 (a free Virtual Machine from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/), with node 8.12.0 and using the master branch:
|
Any updates on this issue? |
using Node 8.0.0
What i'm doing:
Renaming a file from file2.txt -> file3.txt
What happens
2 events fire:
a rename event, and a create event for the old filename,
Events:
I'm pretty sure that this is not what we want. :)
The text was updated successfully, but these errors were encountered: