node/lib/internal/fs
翠 / green 091098f40a 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: https://github.com/nodejs/node/issues/51031
PR-URL: https://github.com/nodejs/node/pull/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>
2024-01-02 15:05:27 -03:00
..
cp fs: do not throw error on cpSync internals 2023-11-11 20:37:42 +01:00
read fs: improve error performance of sync methods 2023-09-17 20:42:46 +00:00
dir.js fs: introduce dirent.parentPath 2023-12-04 11:15:05 +01:00
glob.js fs: fix glob returning duplicates 2023-11-29 09:46:36 -03:00
promises.js fs: fix fs.promises.realpath for long paths on Windows 2024-01-02 15:05:27 -03:00
recursive_watch.js fs: use kResistStopPropagation 2023-06-24 15:52:38 +00:00
rimraf.js fs: add trailing commas in source files 2023-02-20 01:58:32 +01:00
streams.js fs: add flush option to createWriteStream() 2023-10-11 16:25:05 +00:00
sync_write_stream.js fs: call the callback with an error if writeSync fails 2023-06-26 14:18:58 +00:00
utils.js fs: introduce dirent.parentPath 2023-12-04 11:15:05 +01:00
watchers.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00