0

I'm trying to implement something similar to the gulp.watch() function in gulp.js, and watch for create/delete/changes to files matching a glob (i.e. '*/.dart', 'tests/*.dart').

Is there a way to do this using the standard library, or a way to implement this using a package on pub?

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
Mark B
  • 2,870
  • 3
  • 20
  • 18
  • this may be what you are looking for http://stackoverflow.com/questions/21050962 – Günter Zöchbauer Feb 13 '14 at 17:12
  • Thanks Gunther. Took a look at that but it only watched a single part with the option to watch recursively. It doesn't seem to handle matching the emitted events against a glob. Maybe I will try to write my own. – Mark B Feb 13 '14 at 17:21
  • quiver.pattern has a `Glob` implementation, and an quiver.io library with some utilities, but nothing typing them together yet. If you want to contribute this watcher to Quiver, it'd be welcome. – Justin Fagnani Feb 14 '14 at 03:36
  • Thanks Justin! I'll check out quiver! – Mark B Feb 14 '14 at 03:54

0 Answers0