dart-lang / watcher

A file system watcher library for Dart.
https://pub.dev/packages/watcher
BSD 3-Clause "New" or "Revised" License
138 stars 35 forks source link

Fix missing events for files with directory prefix #84

Closed natebosch closed 4 years ago

natebosch commented 4 years ago

Fixes #83

If any event had the same leading characters as a directory that was also changed it would get filtered out. For example if both lib/b/ and lib/b.dart have change events we'd lose the events for lib/b.dart because it shared a prefix with a directory, even though it isn't contained within that directory.