Skip to content

Commit 2e49425

Browse files
mxplealex-courtis
andauthored
Update lua/nvim-tree/explorer/explore.lua
Co-authored-by: Alexander Courtis <[email protected]>
1 parent d95891c commit 2e49425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/explorer/explore.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ local function populate_children(handle, cwd, node, git_status, parent)
4343
local stat = vim.loop.fs_stat(abs)
4444

4545
-- 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
46+
local type = stat and stat.type or nil
4747

4848
local filter_reason = parent.filters:should_filter_as_reason(abs, stat, filter_status)
4949
if filter_reason == FILTER_REASON.none and not nodes_by_path[abs] then

0 commit comments

Comments
 (0)