@@ -139,13 +139,13 @@ function Explorer:reload(node, git_status)
139
139
remain_childs [abs ] = true
140
140
141
141
-- Type must come from fs_stat and not fs_scandir_next to maintain sshfs compatibility
142
- local type = stat and stat .type or nil
142
+ local t = stat and stat .type or nil
143
143
144
144
-- Recreate node if type changes.
145
145
if nodes_by_path [abs ] then
146
146
local n = nodes_by_path [abs ]
147
147
148
- if n .type ~= type then
148
+ if n .type ~= t then
149
149
utils .array_remove (node .nodes , n )
150
150
explorer_node .node_destroy (n )
151
151
nodes_by_path [abs ] = nil
@@ -154,11 +154,11 @@ function Explorer:reload(node, git_status)
154
154
155
155
if not nodes_by_path [abs ] then
156
156
local new_child = nil
157
- if type == " directory" and vim .loop .fs_access (abs , " R" ) and Watcher .is_fs_event_capable (abs ) then
157
+ if t == " directory" and vim .loop .fs_access (abs , " R" ) and Watcher .is_fs_event_capable (abs ) then
158
158
new_child = builders .folder (node , abs , name , stat )
159
- elseif type == " file" then
159
+ elseif t == " file" then
160
160
new_child = builders .file (node , abs , name , stat )
161
- elseif type == " link" then
161
+ elseif t == " link" then
162
162
local link = builders .link (node , abs , name , stat )
163
163
if link .link_to ~= nil then
164
164
new_child = link
0 commit comments