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

added/deleted not emited on Snow Leopard ? #59

Closed
jeromedecoster opened this issue Dec 4, 2013 · 1 comment
Closed

added/deleted not emited on Snow Leopard ? #59

jeromedecoster opened this issue Dec 4, 2013 · 1 comment

Comments

@jeromedecoster
Copy link

Hi,

I just try your sample file, slightly modified:

gaze('**/*', function(err, watcher) {
  // On file changed
  this.on('changed', function(filepath) {
    console.log(filepath + ' was changed');
  });

  // On file added
  this.on('added', function(filepath) {
    console.log(filepath + ' was added');
  });

  // // On file deleted
  this.on('deleted', function(filepath) {
    console.log(filepath + ' was deleted');
  });
});

But it only works if I update an existing file like a.js

touch a.js

not when I add b.js or remove an existing file a.js

touch b.js
rm a.js

node v0.11.8
but OSX 10.6.8

I try the same code on a Mountain Lion, and everything is OK

gaze is not supposed to works with an old OS ?

@shama
Copy link
Owner

shama commented Dec 4, 2013

Odd versions of node are unstable development versions. Please try with a stable version of node, ie: v0.10.22.

As to OSX 10.6, I'd rather not support such an old version. So if there is an issue, I'd be happy to take a patch with tests that show the error on OSX 10.6 but I personally won't be hunting down issues on OSX 10.6 anymore. Thanks!

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

2 participants