Comments (4)
Notify isn't designed to watch single files, so the behaviour you report could be considered a feature, or at the very least "undefined behaviour".
Notify could watch single files, but this is a feature that would need to be deliberately developed — you'll find that other notifier libraries (in Go, C, Ruby...) also do not support it, the reason being that inotify doesn't support it, and I think the Windows API doesn't either.
I've opened #16 to track enthusiasm / thoughts / implementations for this feature.
from notify.
Fair enough, thanks for the info!
from notify.
As of #22, Notify can watch single files!
from notify.
💯 Thanks!
from notify.
Related Issues (20)
- Inconsistent behaviors when root node changes HOT 3
- inotify backend: MOVE_SELF event keeps watch and reports incorrect path HOT 1
- Prepare notify 7.0 release HOT 3
- Zbus / Nix Dependency Issue HOT 2
- Feature request: unwatch subpaths
- Receiving `Modify(Metadata(Any))` only if file contents becomes empty from non-empty HOT 2
- Full CPU core usage with the Inotify backend HOT 1
- Not adequate README/links to documentation on crates.io for file-id
- inotify: files pointed at by multiples symlinks generate events only for one path HOT 1
- Relax windows-rs version requirement HOT 2
- Simple example from documentation doesn't work HOT 1
- On FreeBSD notifications are only delivered using `RecursiveMode::Recursive`
- TOCTOU bug when adding a watcher HOT 1
- Watch on non-existing file HOT 3
- PollWatcher: Ignore IO "file not found" exceptions when accessing entry metadata?🥺 HOT 4
- .
- How to stop a debouncer watcher if it's mut reference?
- Compilation error in v4 HOT 4
- FS operations performed by blender yield confusing order of events from the debouncer HOT 5
- I have to specify all possible event kinds in match statement, instead of using any. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notify.