0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal/fs
Klaus Meinhardt 83864b3bb0 fs: consistently return symlink type from readdir
Use 'lstat' to determine type of directory entry.
This is more consistent with the type returned from the readdir binding.
Also use 'path.join' over 'path.resolve' because 'name' is not absolute.

PR-URL: https://github.com/nodejs/node/pull/22808
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2018-09-27 15:44:24 -04:00
..
promises.js fs: fix promisified fs.readdir withFileTypes 2018-09-15 04:07:36 -07:00
read_file_context.js
streams.js url: provide pathToFileURL and fileURLToPath 2018-09-04 16:08:21 +02:00
sync_write_stream.js
utils.js fs: consistently return symlink type from readdir 2018-09-27 15:44:24 -04:00
watchers.js fs: improve fs.watch ENOSPC error message 2018-09-22 17:45:45 +02:00