Skip to content

Excclusion / Inclusion filters do not seem to work on Linux #247

@AngmarLord

Description

@AngmarLord

fswatch version - 1.14.0

Environment

CentOs 8.0
GCC version - 8.3.1

Description

The exclude, include filters do not seem to work. Assuming a file extension of the type .abc, exclusion of all, followed by inclusion of .abc, as indicated in documentation, does not create any events at all.

I tried several formats -

fswatch -x --event Created -e ".*" -i "\\.ext$" /path

and

fswatch -x --event Created -e '.*\.*$' -i '.*\.abc$' /path

apart from other variations. In most cases, I do not receive any events, using -v, it seems using an exclusion filter like those described above stops fswatch from adding the /path to watch-list.

Gets stuck at -
start_monitor: Adding path: /home/bob1

Do not get the message -
add_watch: Added: /home/bob1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions