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 8442850 commit 1422d97Copy full SHA for 1422d97
script/files.lua
@@ -70,6 +70,9 @@ local function getRealParent(path)
70
return path
71
end
72
local res = sys.fullpath(path)
73
+ if not res then
74
+ return path
75
+ end
76
return getRealParent(parent) / res:filename()
77
78
script/fs-utility.lua
@@ -571,11 +571,11 @@ function m.fileList(option)
571
local keyMap = {}
572
local fileList = {}
573
local function computeKey(path)
574
- path = fsAbsolute(path, option)
575
- if not path then
+ local abpath = fsAbsolute(path, option)
+ if not abpath then
576
return nil
577
578
- return path:string()
+ return abpath:string()
579
580
return setmetatable({}, {
581
__index = function (_, path)
0 commit comments