-
-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Labels
A-enhancementZ-needs implementationNeeds an implementation, will accept PRsNeeds an implementation, will accept PRs
Description
Hi!
We've been using notify in rust-analyzer, and one thing I've noticed that a task like "watch src/**.rs glob" requires quite a bit of manual implementation. Specifically, I think two bits are complex:
- setting up recursive watching with exclusion
- handling of
rescanevent which requires repeating the recursive logic again
I feel like there's some higher-level API missing here... Ideally I'd love to use something like walkdir:
for event in WatchDir::new("foo").filter_entry(|e| !is_hidden(e)) {
match event {
Event::Create => (),
Event::Change => (),
Event::Delete => (),
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-enhancementZ-needs implementationNeeds an implementation, will accept PRsNeeds an implementation, will accept PRs