Index: pkg/watcher/lib/src/directory_watcher.dart |
diff --git a/pkg/watcher/lib/src/directory_watcher.dart b/pkg/watcher/lib/src/directory_watcher.dart |
index 4484c2b77bf194254f18cd14d4e499b07ef0b097..78b1174e189646560f12414afc615499fb8b99b7 100644 |
--- a/pkg/watcher/lib/src/directory_watcher.dart |
+++ b/pkg/watcher/lib/src/directory_watcher.dart |
@@ -9,6 +9,7 @@ import 'dart:io'; |
import 'watch_event.dart'; |
import 'directory_watcher/linux.dart'; |
+import 'directory_watcher/mac_os.dart'; |
import 'directory_watcher/polling.dart'; |
/// Watches the contents of a directory and emits [WatchEvent]s when something |
@@ -54,6 +55,7 @@ abstract class DirectoryWatcher { |
/// watchers. |
factory DirectoryWatcher(String directory, {Duration pollingDelay}) { |
if (Platform.isLinux) return new LinuxDirectoryWatcher(directory); |
+ if (Platform.isMacOS) return new MacOSDirectoryWatcher(directory); |
return new PollingDirectoryWatcher(directory, pollingDelay: pollingDelay); |
} |
} |