We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fs_stat
fs_readdir
1 parent 3a444cb commit 1114b23Copy full SHA for 1114b23
lua/mason-core/fs.lua
@@ -134,6 +134,13 @@ local function make_module(uv)
134
log.trace("fs: fs_readdir", path, entries)
135
if entries and #entries > 0 then
136
for i = 1, #entries do
137
+ if entries[i].name and not entries[i].type then
138
+ -- See https://github.com/luvit/luv/issues/660
139
+ local full_path = Path.concat { path, entries[i].name }
140
+ log.trace("fs: fs_readdir falling back to fs_stat to find type", full_path)
141
+ local stat = uv.fs_stat(full_path)
142
+ entries[i].type = stat.type
143
+ end
144
all_entries[#all_entries + 1] = entries[i]
145
end
146
else
0 commit comments