Hi,
I've been tinkering with your add event logic as it somehow didn't trigger when i created files in a monitored folder.
I 'think' your check for symbolic links is wrong. Based on the comment in your code, it looks like you just want to ignore symbolic links. If that's what you want to do then your if should look like this:
if (!err && !lstats.isDirectory() && !lstats.isSymbolicLink())
That makes it work again.
Also, why ignore symlinks?
Why block out folder creations?
I like your library, but it does much more then it's description makes you think it does. It should not filter out stuff that i didn't tell it to filter out.
Cheers,
Mark
Hi,
I've been tinkering with your add event logic as it somehow didn't trigger when i created files in a monitored folder.
I 'think' your check for symbolic links is wrong. Based on the comment in your code, it looks like you just want to ignore symbolic links. If that's what you want to do then your if should look like this:
if (!err && !lstats.isDirectory() && !lstats.isSymbolicLink())That makes it work again.
Also, why ignore symlinks?
Why block out folder creations?
I like your library, but it does much more then it's description makes you think it does. It should not filter out stuff that i didn't tell it to filter out.
Cheers,
Mark