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 }}
Repository navigation
fs.existSync returns true after fs. symlinkSync node 10 onwards in windows only #30538
Activity
pd4d10 commentedon Nov 19, 2019
It seems reasonable at Linux, because the link is broken (There is no
test/foo.jsfile)If
test/foo.jsexists the second result would betrue.pd4d10 commentedon Nov 19, 2019
The behavior of Windows seems caused by using
accessinstead ofstatto implementexistsSync, See #18618Maybe we should firstly add some tests to
test-fs-exists.jsto cover this caseSparshithNR commentedon Nov 19, 2019
@pd4d10 Thanks for the response. Should I consider this issue as a bug in the windows?
Fishrock123 commentedon Nov 19, 2019
Perhaps
existsshould just check bothaccessandstaton Windows...fs: fix existsSync for invalid symlink at win32
fs: fix existsSync for invalid symlink at win32
fs: fix existsSync for invalid symlink at win32