Files
neovim/runtime/lua/vim
abdulahmoda b9d39f5bb2 fix(vim.fs): fs.dir() may return nil "type" on some filesystems #39749
Problem:
Currently, only some filesystems (Btrfs, ext2, ext3, ext4) have full
support of accessing the `dirent` entry-type. On other filesystems,
`uv.fs_scandir_next` may return `nil` for an existing but unsupported
entry-type.

This means consumers (such as `fs.dir()`), cannot know if `nil` means
"non-existent" or "unsupported".

Solution:
Fall back to `uv.fs_lstat` when `etype` is `nil`; return "unknown" if it
fails.

(cherry picked from commit 4b5f026ac9)
2026-05-29 18:56:59 +00:00
..
2026-04-25 13:51:22 -04:00
2026-05-07 12:03:02 +02:00
2025-06-06 15:36:48 +01:00
2026-01-09 10:07:15 +01:00
2026-03-11 18:00:18 +01:00