Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz authored and 0xpr03 committed Jan 14, 2023
1 parent 3439340 commit d765321
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions notify/src/kqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ impl EventLoop {
Ok(())
}

/// Adds a single watch to the kqueue.
///
/// The caller of this function must call `self.kqueue.watch()` afterwards to register the new watch.
fn add_single_watch(&mut self, path: PathBuf, is_recursive: bool) -> Result<()> {
let event_filter = EventFilter::EVFILT_VNODE;
let filter_flags = FilterFlag::NOTE_DELETE
Expand Down

0 comments on commit d765321

Please sign in to comment.