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

Windows 10: renaming of an empty folder triggers only once #593

Closed
AndyOGo opened this issue Apr 2, 2017 · 3 comments
Closed

Windows 10: renaming of an empty folder triggers only once #593

AndyOGo opened this issue Apr 2, 2017 · 3 comments

Comments

@AndyOGo
Copy link

AndyOGo commented Apr 2, 2017

If I rename a given folder from foo to bar, then to baz and back to bar.
Only the first bar rename is emitted, subsequent renamings to an already used name are not emitted any more, like jQuery's once event API.

Observed with chokidar 1.6.1

@es128
Copy link
Contributor

es128 commented Apr 3, 2017

Please show what's being emitted out of the raw event while you're doing this.

@es128
Copy link
Contributor

es128 commented Apr 3, 2017

Also, if you want an immediate fix try the usePolling: true option. It's likely to resolve the issue for you, but comes with some performance tradeoffs.

@AndyOGo
Copy link
Author

AndyOGo commented Apr 11, 2017

@es128
Thanks for your quick reply.
I'm sorry for my late answer, I'm very busy atm and I wanted to supply a full failing test.

I'm the author of node-sync-glob which uses awesome chokidar under the hood.
Yep, I have usePolling: true enabled.

Edit
I started to record my tests as you described, but haven't done all yet.

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

3 participants