2 people reported

All time, since Sep 13.

Async realpath drops drive root slash

“A Windows drive root is the one path fs.promises.realpath gets wrong: it comes back drive-relative (C:) instead of C:\.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/5452/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Async realpath returns drive-relative path for Windows drive root. fs/promises realpath("C:\\") returns "C:" while fs.realpathSync returns "C:\\", and readdir of that value throws ENOENT.

Is this your bug?

File my report
Where
fs/promises API
Versions
1.4.2 to 1.4.3
Platforms
Windows
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. Windows: fs/promises realpath('C:\') returns 'C:' - async disagrees with realpathSync, and readdir of that value throws ENOENT#45363
  2. node:fs: fs.promises.realpath returns a drive-relative path for a Windows drive root#42581

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.