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

Kqueue emit Create Events and watch all files in a directory #372

Merged
merged 2 commits into from Dec 20, 2021
Merged

Kqueue emit Create Events and watch all files in a directory #372

merged 2 commits into from Dec 20, 2021

Commits on Dec 7, 2021

  1. kqueue: watch each file not just the directories

    The kqueue backend started as a copy of the inotify backend.
    One major difference between kqueue and inotify was overlook by me,
    inotify reports events for changes to files contained in a folder if the
    folder is watched. Kqueue dosen't do this, each file has to be watch
    individually.
    
    This change fixes this, events are now reported for all files in a
    recursive watch.
    xanderio committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    26f95b6 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. kqueue: emit Create event on file creation

    As kqueue dosen't provide this information directly we have to do some
    trickery, that is keep a list of known file in a directory and compare
    it to the directory after a Write event was emitted for that directory.
    
    This change fixes #365.
    xanderio committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    b0ed180 View commit details
    Browse the repository at this point in the history