diff --git a/data/core/init.lua b/data/core/init.lua index 7218b552..8a8537d2 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -81,10 +81,10 @@ local function project_scan_thread() local max_entries = config.max_project_files for _, file in ipairs(all) do if not common.match_pattern(file, config.ignore_files) then - local file = (path ~= "." and path .. PATHSEP or "") .. file + local file = path .. PATHSEP .. file local info = system.get_file_info(file) if info and info.size < size_limit then - info.filename = system.absolute_path(file) + info.filename = file table.insert(info.type == "dir" and dirs or files, info) entries_count = entries_count + 1 if entries_count > max_entries then break end diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 1148b19b..f17a7ae8 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -37,10 +37,6 @@ local function relative_filename(filename, dirname) end -local function belongs_to_directory(item, dirname) - return relative_filename(item.filename, dirname) -end - function TreeView:get_cached(item, dirname) local dir_cache = self.cache[dirname]