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

Ignore files when using the 'cwd' option #311

Merged
merged 5 commits into from
Jul 14, 2015
Merged

Ignore files when using the 'cwd' option #311

merged 5 commits into from
Jul 14, 2015

Conversation

jimmy-robert
Copy link
Contributor

I ran into a minor issue when files are not ignored when using cwd option with chokidar.watch, neither in the paths parameter with paths starting with !, nor in the ignored property of the options parameter.

I fixed it jus taking care of the cwd option in the _isIgnored function and change taking care of paths starting with ! in the add function when cwd is used.

I also tested this feature in the cwd describe in the test.js.

})
)
);
if(!this._userIgnored){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls match code style on all the if statements (missing spaces)

@es128
Copy link
Collaborator

es128 commented Jul 13, 2015

Thanks! Just a few code style nits, but generally looks good for merge+publish.

jimrobs added 2 commits July 14, 2015 01:21
- Refactor and simplify case where `cwd` and `ignored` options are used
es128 added a commit that referenced this pull request Jul 14, 2015
Ignore files when using the 'cwd' option
@es128 es128 merged commit 48f1294 into paulmillr:master Jul 14, 2015
taratatach pushed a commit to taratatach/chokidar that referenced this pull request Oct 2, 2023
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

2 participants