Skip to content

Add event doesn't fire when files are added. #9

@markg85

Description

@markg85

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions