Files
node/lib
sangwook dd918b9980 fs: fix ENOTDIR in globSync when file is treated as dir
`fs.globSync` failed with `ENOTDIR` when a path component in a glob
pattern was a file but used as a directory (e.g., 'foo{,/bar}' when
'foo' is a file).

This change aligns `getDirentSync` with the asynchronous `getDirent`
by wrapping the `lstatSync` call in a `try-catch` block to safely
return `null` on such errors.

Fixes: https://github.com/nodejs/node/issues/61257
PR-URL: https://github.com/nodejs/node/pull/61259
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-02-24 08:38:57 +01:00
..
…
…
…
…
2024-11-27 11:03:39 -05:00
…
2025-08-26 11:22:39 +02:00
…
2024-07-16 12:01:14 +02:00
2025-10-18 20:35:56 +02:00
2026-02-24 00:37:08 +01:00
2024-11-27 11:03:39 -05:00
2024-11-27 11:03:39 -05:00
2025-09-20 06:16:51 +00:00
2025-02-03 20:09:53 +01:00
2025-10-07 17:29:36 +02:00
2025-04-17 10:51:20 -03:00
…
2025-09-20 03:32:52 +00:00