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
{{ message }}
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.
statSync already follows symlinks automatically and throws an ENOENT error on broken symlinks, unlike lstatSync, so no special handling is needed for that.
The text was updated successfully, but these errors were encountered:
@joliss I tried swapping in statSync instead of lstatSync, but I'm unable to get it working with my tests. :(
It refuses to follow the symlinks I've setup in my tests, and throws ENOENT errors on symlinks that worked with lstatSync. Maybe I'm doing something wrong with my setup?
Currently,
fs.existsSync
is implemented in terms offs.statSync
. I think this module can copy that logic and be much simpler as a result.statSync
already follows symlinks automatically and throws an ENOENT error on broken symlinks, unlikelstatSync
, so no special handling is needed for that.The text was updated successfully, but these errors were encountered: