diff options
-rw-r--r-- | script/glob/gitignore.lua | 2 | ||||
-rw-r--r-- | script/workspace/workspace.lua | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua index 3f942bfb..4320e129 100644 --- a/script/glob/gitignore.lua +++ b/script/glob/gitignore.lua @@ -181,7 +181,7 @@ function mt:scan(callback) if filename and filename ~= '.' and filename ~= '..' then - list[#list+1] = current .. '/' .. filename + list[#list+1] = path end end end diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 5f998feb..fe709453 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -35,19 +35,11 @@ function m.init(uri) end local function interfaceFactory(root) - -- TODO: need flush!!! - local mark = {} return { type = function (path) local result pcall(function () - local abspath = fs.absolute(fs.path(root .. '/' .. path)) - local abskey = abspath:string():lower() - if mark[abskey] then - --return nil - end - mark[abskey] = true - if fs.is_directory(abspath) then + if fs.is_directory(path) then result = 'directory' else result = 'file' |