-
Notifications
You must be signed in to change notification settings - Fork 42
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
Watching files #32
Comments
the latest code on github has already been modified to support deletion but needs to be tested out |
Is the issue support for deletion, or support for watching a particular file name rather than files in a particular directory (optionally: and its subdirectories)? |
@mdittmer |
Yes, watching single files would be very useful. Do the underlying OS APIs allow this on non-Linux platforms? |
I think FSEvents only watches directories, but @feuerbach was looking at adding a kqueue backend. |
@feuerbach I use it to watch my own executable in my I guess whether I want to watch a file or an inode depends on how my change of executable is being written - if it's deleted and re-created, watching the inode will probably not work. |
Exactly. Watching an inode is very fragile, and I have a hard time coming up with an example where one would prefer watching the inode to watching the path. |
I would like to have this feature in as well, that way I could use hfsnotify in a cross OS way instead of relying on hinotify |
Currently I'm thinking of doing this just by making the predicate check the filename. Sometimes things get into trouble when it watches more than it should, e.g. broken symlinks some apps create in /tmp. |
The library is marketed as "Cross platform library for file creation, modification, and deletion notification", yet there is no function to watch a single file.
The text was updated successfully, but these errors were encountered: