-
Notifications
You must be signed in to change notification settings - Fork 167
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
"Adding" files/folders emitter NOT fired. (Mac OS X 10.11) #205
Comments
Gaze uses file patterns instead of file paths to watch files. Try this instead: gaze('*', { cwd: base }, function () {
this.on('all', function (event, filepath) {
console.log(filepath + ' was ' + event)
})
}) |
So you just need to add the "cwd" option, right? Would be good to add to the readme. |
Wait no, that's not it. Somehow as soon as I change |
OK never mind, now it's working... |
Sorry for all the comments, but I did some more testing and figured some things out: it seems to detect new files if and only if there is no |
With gaze( |
I suspect this is a duplicate of #167. |
…hama/gaze#205 workaround by allowing a single dir as cwd property, avoiding a full dir path
Proof is in pudding..
The new file that also got touched
/private/var/tmp/newfileXYZ....
_never gets a notification_ 👎The text was updated successfully, but these errors were encountered: