Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lua/plenary/scandir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ local gen_search_pat = function(pattern)
end

local process_item = function(opts, name, typ, current_dir, next_dir, bp, data, giti, msp)
if typ == "link" and opts.links then
local entry = uv.fs_readlink(current_dir .. "/" .. name)
local ln_type = uv.fs_stat(entry).type
if ln_type == "directory" then
table.insert(data, entry)
end
end
if opts.hidden or name:sub(1, 1) ~= "." then
if typ == "directory" then
local entry = current_dir .. os_sep .. name
Expand Down