Title: `ENOENT` error when reading root of `subst` drive on Windows · Issue #58970 · nodejs/node · GitHub
Open Graph Title: `ENOENT` error when reading root of `subst` drive on Windows · Issue #58970 · nodejs/node
X Title: `ENOENT` error when reading root of `subst` drive on Windows · Issue #58970 · nodejs/node
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:\\."...
Open Graph 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.re...
X 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:\\...
Opengraph URL: https://github.com/nodejs/node/issues/58970
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ENOENT` error when reading root of `subst` drive on Windows","articleBody":"### Version\n\nv24.3.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.26100.0 x64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```cmd\nmd Subst\necho test\u003eSubst\\testfile\nsubst M: Subst\n```\n```nodejs\nfs.readdirSync(\"C:\\\\\")\nfs.readdirSync(\"M:\\\\\")\nfs.readdirSync(\"M:\\\\.\")\n```\n\u003cimg width=\"1240\" height=\"951\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a55eae80-1675-4779-9869-c1441e32ea9f\" /\u003e\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nNo error should happens.\n\n### What do you see instead?\n\nENOENT: no such file or directory, scandir 'M:\\\\\\\\'\n\n### Additional information\n\nNot program with Node.js myself. Have issue with this behavior with VS Code extension https://github.com/belav/csharpier/issues/1637","author":{"url":"https://github.com/PetSerAl","@type":"Person","name":"PetSerAl"},"datePublished":"2025-07-06T03:02:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/58970/node/issues/58970"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:935ff14c-c709-725d-99cf-46c64fbcb8b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A73E:1A72E:315E16:431C25:6A4D2D51 |
| html-safe-nonce | 9964de47acb770d9bae96d446893a29e66cffab52ad7fc4aee6a7107a57e0f8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzNFOjFBNzJFOjMxNUUxNjo0MzFDMjU6NkE0RDJENTEiLCJ2aXNpdG9yX2lkIjoiMjczMzg0NDU4NDA0MzEwMzUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 12edb4d729f98d3567499050c33864064856b2c856e4235c0e8bab307bcda355 |
| hovercard-subject-tag | issue:3205971221 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/58970/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ba0f73129bcc6f9d93a01996323ab916e513973a77d6359d3477d8bdbda73a2/nodejs/node/issues/58970 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ba0f73129bcc6f9d93a01996323ab916e513973a77d6359d3477d8bdbda73a2/nodejs/node/issues/58970 |
| og:image:alt | 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.re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PetSerAl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width