Open
Description
Version
v24.3.0
Platform
Microsoft Windows NT 10.0.26100.0 x64
Subsystem
No response
What steps will reproduce the bug?
md Subst
echo test>Subst\testfile
subst M: Subst
fs.readdirSync("C:\\")
fs.readdirSync("M:\\")
fs.readdirSync("M:\\.")

How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
No error should happens.
What do you see instead?
ENOENT: no such file or directory, scandir 'M:\\'
Additional information
Not program with Node.js myself. Have issue with this behavior with VS Code extension belav/csharpier#1637