fs: fix fs.promises.realpath for long paths on Windows · nodejs/node@091098f · GitHub
Skip to content

Commit 091098f

Browse files
sapphi-redRafaelGSS
authored andcommitted
fs: fix fs.promises.realpath for long paths on Windows
Unlike other fs functions that work with paths, realpath isn't using pathModule.toNamespacedPath prior to calling libuv function. This is causing issues on windows. Windows long path test is also improved to cover the mentioned issue. Fixes: #51031 PR-URL: #51032 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 652af45 commit 091098f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/internal/fs/promises.js

Lines changed: 1 addition & 1 deletion

test/parallel/test-fs-long-path.js

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)