You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, we use walkdir to list paths, and then use inotify to watch the path. The problem is that between the moment that walkdir returned us a PathBut, and us giving this path to inotify to watch, the path can get deleted. This results in inotify returning a FileNotFound IO error, and notify bailing out with it all the way up to RecommendedWatcher::watch.
The expected behavior is for notify to either report removal for this path, or not report anything at all, but clearly not to crash.
EDIT: to clarify, the path in question is not the root path which we ask to watch, but some subdirectory of it
The text was updated successfully, but these errors were encountered:
See user visible bug report here: lomirus/live-server#73
I believe the following code is incorrect:
notify/notify/src/inotify.rs
Lines 400 to 407 in 2511ebc
Here, we use walkdir to list paths, and then use
inotify
to watch the path. The problem is that between the moment thatwalkdir
returned us aPathBut
, and us giving this path toinotify
to watch, the path can get deleted. This results in inotify returning a FileNotFound IO error, andnotify
bailing out with it all the way up toRecommendedWatcher::watch
.The expected behavior is for notify to either report removal for this path, or not report anything at all, but clearly not to crash.
EDIT: to clarify, the path in question is not the root path which we ask to watch, but some subdirectory of it
The text was updated successfully, but these errors were encountered: