stat fails on invalid symbolic link - should use lstat
BobFrankston opened this issue · comments
the stat function fails on an invalid symbolic link -- one for which the target is unavailable. lstat can be used to get the link's status without following it, thus avoiding the error. For watching there shouldn't be a need to follow links. I see the code tries both stat and lstat -- the failure of stat should not be fatal.