File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11# changelog
22
33## 3.2.3
4+ * ` CHG ` dose not load files in symbol links
45* ` FIX ` diagnostic: send empty results to every file after startup
56
67## 3.2.2
Original file line number Diff line number Diff line change @@ -68,17 +68,18 @@ local globInteferFace = {
6868 type = function (path )
6969 local result
7070 pcall (function ()
71- if fs .is_directory (fs .path (path )) then
71+ local status = fs .symlink_status (path ):type ()
72+ if status == ' directory' then
7273 result = ' directory'
73- else
74+ elseif status == ' regular ' then
7475 result = ' file'
7576 end
7677 end )
7778 return result
7879 end ,
7980 list = function (path )
8081 local fullPath = fs .path (path )
81- if not fs .exists (fullPath ) then
82+ if fs .symlink_status (fullPath ): type () ~= ' directory ' then
8283 return nil
8384 end
8485 local paths = {}
You can’t perform that action at this time.
0 commit comments