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.
1 parent d95891c commit 2e49425Copy full SHA for 2e49425
lua/nvim-tree/explorer/explore.lua
@@ -43,7 +43,7 @@ local function populate_children(handle, cwd, node, git_status, parent)
43
local stat = vim.loop.fs_stat(abs)
44
45
-- Type must come from fs_stat and not fs_scandir_next to maintain sshfs compatibility
46
- local type = (vim.loop.fs_stat(abs) or {}).type
+ local type = stat and stat.type or nil
47
48
local filter_reason = parent.filters:should_filter_as_reason(abs, stat, filter_status)
49
if filter_reason == FILTER_REASON.none and not nodes_by_path[abs] then
0 commit comments