Skip to content

Commit 9b4e021

Browse files
committed
Address review comments.
1 parent 16c88c5 commit 9b4e021

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/watcher/lib/src/directory_watcher/windows.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ class _WindowsDirectoryWatcher
199199
subscription.onError((Object e, StackTrace stackTrace) {
200200
_listSubscriptions.remove(subscription);
201201
// "Path not found" can be caused by creating then quickly removing
202-
// a directory: continue without reporting an error.
202+
// a directory: continue without reporting an error. Nested files
203+
// that get removed during the `list` are already ignored by `list`
204+
// itself, so there are no other types of "path not found" that
205+
// might need different handling here.
203206
if (e is! PathNotFoundException) {
204207
_emitError(e, stackTrace);
205208
}

0 commit comments

Comments
 (0)