René's URL Explorer Experiment


Title: fix(fs): prevent ENOENT on subst drive root paths like "M:\\" on Windows by mag123c · Pull Request #58989 · nodejs/node · GitHub

Open Graph Title: fix(fs): prevent ENOENT on subst drive root paths like "M:\\" on Windows by mag123c · Pull Request #58989 · nodejs/node

X Title: fix(fs): prevent ENOENT on subst drive root paths like "M:\\" on Windows by mag123c · Pull Request #58989 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: This PR fixes an issue where fs.readdirSync('M:\\') and related calls would fail with an ENOENT error on Windows when using subst drive roots. Previously, Node.js added a trailing backslash...

X Description: This PR fixes an issue where fs.readdirSync('M:\\') and related calls would fail with an ENOENT error on Windows when using subst drive roots. Previously, Node.js added a trailing b...

Opengraph URL: https://github.com/nodejs/node/pull/58989

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f930dc9e-e25b-c237-c048-ef6d2a329f2a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE6C:30A7B5:CCD643:11FA6FB:6A4CA8EB
html-safe-nonce891df08bc95bf43244ff2ee205d081229fa1b93f8ead38bdb329a5d4b2e271e5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTZDOjMwQTdCNTpDQ0Q2NDM6MTFGQTZGQjo2QTRDQThFQiIsInZpc2l0b3JfaWQiOiI4NzYwODI4OTgwMjU5MjM2MDc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9af6b2e52171979f0e0fc3d668c704ae26701392d83ab5d778b294fd77122189
hovercard-subject-tagpull_request:2649002024
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/58989/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3910bac42d4b31bba3345a349ffaff2cd46cefa6cdf36c6de00e55129c652bc4/nodejs/node/pull/58989
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3910bac42d4b31bba3345a349ffaff2cd46cefa6cdf36c6de00e55129c652bc4/nodejs/node/pull/58989
og:image:altThis PR fixes an issue where fs.readdirSync('M:\\') and related calls would fail with an ENOENT error on Windows when using subst drive roots. Previously, Node.js added a trailing backslash...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemag123c
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/58989#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F58989
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F58989
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/58989
Reloadhttps://github.com/nodejs/node/pull/58989
Reloadhttps://github.com/nodejs/node/pull/58989
Please reload this pagehttps://github.com/nodejs/node/pull/58989
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/58989
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 964 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
mag123chttps://github.com/mag123c
nodejs:mainhttps://github.com/nodejs/node/tree/main
mag123c:fix-windows-subst-drive-issuehttps://github.com/mag123c/node/tree/fix-windows-subst-drive-issue
Conversationhttps://github.com/nodejs/node/pull/58989
Commits2 (2)https://github.com/nodejs/node/pull/58989/commits
Checkshttps://github.com/nodejs/node/pull/58989/checks
Files changedhttps://github.com/nodejs/node/pull/58989/files
fix(fs): prevent ENOENT on subst drive root paths like "M:\\" on Windowshttps://github.com/nodejs/node/pull/58989#top
mag123chttps://github.com/mag123c
nodejs:mainhttps://github.com/nodejs/node/tree/main
mag123c:fix-windows-subst-drive-issuehttps://github.com/mag123c/node/tree/fix-windows-subst-drive-issue
https://github.com/mag123c
mag123chttps://github.com/mag123c
Jul 8, 2025https://github.com/nodejs/node/pull/58989#issue-3211530176
Please reload this pagehttps://github.com/nodejs/node/pull/58989
#58970https://github.com/nodejs/node/issues/58970
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
c++ https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Ac%2B%2B
fs https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Afs
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
Jul 8, 2025https://github.com/nodejs/node/pull/58989#event-18520492373
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Jul 8, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3050047421
Please reload this pagehttps://github.com/nodejs/node/pull/58989
Codecovhttps://app.codecov.io/gh/nodejs/node/pull/58989?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
4bfcad1https://app.codecov.io/gh/nodejs/node/commit/4bfcad1ac5da14d4d47d04ae6121455d6c8a27a1?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
c97462bhttps://app.codecov.io/gh/nodejs/node/commit/c97462b578e9c2c78a9c9e275f5aed4d9025c9f3?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
Files with missing lineshttps://app.codecov.io/gh/nodejs/node/pull/58989?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
src/node_file.cchttps://app.codecov.io/gh/nodejs/node/pull/58989?src=pr&el=tree&filepath=src%2Fnode_file.cc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs#diff-c3JjL25vZGVfZmlsZS5jYw==
245 files with indirect coverage changeshttps://app.codecov.io/gh/nodejs/node/pull/58989/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
Test Analyticshttps://docs.codecov.com/docs/test-analytics
JS Bundle Analysishttps://docs.codecov.com/docs/javascript-bundle-analysis
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/mag123c
mag123chttps://github.com/mag123c
force-pushedhttps://github.com/nodejs/node/compare/1474ed1ea826acd254a39033572f929da2c4d68c..fcaee03f8303d55daa70bf2b130c2e1c1ecf164e
1474ed1https://github.com/nodejs/node/commit/1474ed1ea826acd254a39033572f929da2c4d68c
fcaee03https://github.com/nodejs/node/commit/fcaee03f8303d55daa70bf2b130c2e1c1ecf164e
Compare https://github.com/nodejs/node/compare/1474ed1ea826acd254a39033572f929da2c4d68c..fcaee03f8303d55daa70bf2b130c2e1c1ecf164e
July 9, 2025 00:31https://github.com/nodejs/node/pull/58989#event-18535797874
https://github.com/mag123c
mag123chttps://github.com/mag123c
Jul 10, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3054612881
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/mag123c
fs: prevent ENOENT on subst drive root paths on Windowshttps://github.com/nodejs/node/pull/58989/commits/c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
c97462bhttps://github.com/nodejs/node/pull/58989/commits/c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
nodejs#58970https://github.com/nodejs/node/issues/58970
https://github.com/mag123c
mag123chttps://github.com/mag123c
force-pushedhttps://github.com/nodejs/node/compare/fcaee03f8303d55daa70bf2b130c2e1c1ecf164e..c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
fcaee03https://github.com/nodejs/node/commit/fcaee03f8303d55daa70bf2b130c2e1c1ecf164e
c97462bhttps://github.com/nodejs/node/commit/c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
Compare https://github.com/nodejs/node/compare/fcaee03f8303d55daa70bf2b130c2e1c1ecf164e..c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
July 15, 2025 11:41https://github.com/nodejs/node/pull/58989#event-18636581634
https://github.com/mag123c
mag123chttps://github.com/mag123c
Jul 15, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3073290795
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/StefanStojanovic
StefanStojanovichttps://github.com/StefanStojanovic
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Jul 22, 2025https://github.com/nodejs/node/pull/58989#event-18748598264
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
request-ci-failed https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci-failed
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Jul 22, 2025https://github.com/nodejs/node/pull/58989#event-18748649376
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 22, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3102041220
https://github.com/nodejs/node/actions/runs/16441290676https://github.com/nodejs/node/actions/runs/16441290676
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/StefanStojanovic
StefanStojanovichttps://github.com/StefanStojanovic
Jul 22, 2025 https://github.com/nodejs/node/pull/58989#pullrequestreview-3042283182
View reviewed changes https://github.com/nodejs/node/pull/58989/files/c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
StefanStojanovichttps://github.com/StefanStojanovic
https://github.com/nodejs/node/pull/58989#pullrequestreview-3042283182
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/StefanStojanovic
StefanStojanovichttps://github.com/StefanStojanovic
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
request-ci-failed https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci-failed
Jul 22, 2025https://github.com/nodejs/node/pull/58989#event-18748717839
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Jul 22, 2025https://github.com/nodejs/node/pull/58989#event-18748920841
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Jul 22, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3102105337
https://ci.nodejs.org/job/node-test-pull-request/68103/https://ci.nodejs.org/job/node-test-pull-request/68103/
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Aug 5, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3154856809
https://ci.nodejs.org/job/node-test-pull-request/68416/https://ci.nodejs.org/job/node-test-pull-request/68416/
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/StefanStojanovic
StefanStojanovichttps://github.com/StefanStojanovic
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Aug 21, 2025https://github.com/nodejs/node/pull/58989#event-19266716399
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Aug 21, 2025https://github.com/nodejs/node/pull/58989#event-19266880253
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Aug 21, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3210667513
https://ci.nodejs.org/job/node-test-pull-request/68787/https://ci.nodejs.org/job/node-test-pull-request/68787/
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/StefanStojanovic
StefanStojanovichttps://github.com/StefanStojanovic
Nov 4, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3484559693
@mag123chttps://github.com/mag123c
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/mag123c
fs: refactor namespaced drive root check for performancehttps://github.com/nodejs/node/pull/58989/commits/83e2c4634f3f6407a461e814265cc04fddb98262
83e2c46https://github.com/nodejs/node/pull/58989/commits/83e2c4634f3f6407a461e814265cc04fddb98262
https://github.com/mag123c
mag123chttps://github.com/mag123c
force-pushedhttps://github.com/nodejs/node/compare/a3d94237e6f35674d51fd516b2f44a19e18cf152..83e2c4634f3f6407a461e814265cc04fddb98262
a3d9423https://github.com/nodejs/node/commit/a3d94237e6f35674d51fd516b2f44a19e18cf152
83e2c46https://github.com/nodejs/node/commit/83e2c4634f3f6407a461e814265cc04fddb98262
Compare https://github.com/nodejs/node/compare/a3d94237e6f35674d51fd516b2f44a19e18cf152..83e2c4634f3f6407a461e814265cc04fddb98262
November 4, 2025 08:54https://github.com/nodejs/node/pull/58989#event-20695551591
https://github.com/mag123c
mag123chttps://github.com/mag123c
Nov 4, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3484718724
@StefanStojanovichttps://github.com/StefanStojanovic
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/mag123c
mag123chttps://github.com/mag123c
Nov 4, 2025https://github.com/nodejs/node/pull/58989#issuecomment-3484747122
Please reload this pagehttps://github.com/nodejs/node/pull/58989
@StefanStojanovichttps://github.com/StefanStojanovic
#59847https://github.com/nodejs/node/pull/59847
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/mag123c
mag123chttps://github.com/mag123c
Nov 4, 2025https://github.com/nodejs/node/pull/58989#event-20695916857
https://github.com/mag123c
mag123chttps://github.com/mag123c
Dec 28, 2025 https://github.com/nodejs/node/pull/58989#ref-issue-3765264923
📢오픈소스 기여모임 - 운영진 소개 opensource-contributors-group/opensource-contributors#2 https://github.com/opensource-contributors-group/opensource-contributors/issues/2
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F58989
https://github.com/StefanStojanovic
StefanStojanovic https://github.com/StefanStojanovic
https://github.com/nodejs/node/pull/58989/files/c97462b578e9c2c78a9c9e275f5aed4d9025c9f3
c++ https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Ac%2B%2B
fs https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Afs
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
ENOENT error when reading root of subst drive on Windows https://github.com/nodejs/node/issues/58970
Please reload this pagehttps://github.com/nodejs/node/pull/58989
https://github.com/mag123c
https://github.com/nodejs-github-bot
https://github.com/StefanStojanovic
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.