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

🐜 Pass directory to the _getWatchedDir method #588

Closed
wants to merge 1 commit into from

Conversation

aleclarson
Copy link

The value of wh.path might be a glob, so we cannot safely pass it to _getWatchedDir.
If we did that, a new entry in the _watched map would be created.
Additionally, the call to fs.readDir would be passed a glob (undefined behavior?).

This only applies when options.useFsEvents is false.

8 failing tests

Let me know if I'm misunderstanding something. 😄

The value of `wh.path` might be a glob, so we cannot safely pass it to `_getWatchedDir`.
If we did that, a new entry in the `_watched` map would be created.
Additionally, the call to `fs.readDir` would be passed a glob (undefined behavior?).

This only applies when `options.useFsEvents` is false.
@coveralls
Copy link

coveralls commented Mar 15, 2017

Coverage Status

Coverage remained the same at 98.393% when pulling d6e49ec on aleclarson:nodefs-readdir-fix into 3f7f113 on paulmillr:master.

@paulmillr paulmillr closed this Mar 22, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants