-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
can't ignore first item via ignore function #335
Comments
You're watching The directory is passed as a first item to watcher — and to That sounds reasonable to me. |
Thanks for getting back to me. I was trying to chase down an issue in function ignored (file) {
if (this.watchIgnoreDotFiles && path.basename(file)[0] === '.') {
return false;
}
} The problem is that if you watch |
Prob just add the |
I'm noticing some strange behaviour when passing a function for the
ignored
parameter if the first call returns true.Expected output: a list of files in the current directory as each one is passed to the
ignored
functionActual output:
file .
then exit. No other files are examinedIf I change the
count
conditional to something else, likecount === 2
, it causes the third item to be ignored as expected, and continues passing every other file in the current directory to theignored
function.Unless I'm missing something here, it seems as though it's not possible to continue execution if you want to ignore the first item passed to the ignore function.
The text was updated successfully, but these errors were encountered: