watcher icon indicating copy to clipboard operation
watcher copied to clipboard

FileSystemException: Exists failed

Open scheglov opened this issue 7 years ago • 0 comments

See https://github.com/dart-lang/sdk/issues/34108

Is it expected that watcher throws exceptions when directory does not exist, is not accessible, etc?

Analysis Server "handles" errors on the events stream, are all errors / exception delivered there, or is there other way to get there problems from watcher?

  Stream<WatchEvent> get changes =>
      new DirectoryWatcher(_entry.path).events.handleError((error) {},
          test: (error) => error is io.FileSystemException);

scheglov avatar Sep 05 '18 17:09 scheglov