From 59881f81a6b60f9a4679ffa8673304a628258b18 Mon Sep 17 00:00:00 2001 From: rxi Date: Tue, 21 Apr 2020 23:45:34 +0100 Subject: [PATCH] Fixed common.path_suggest() for system.list_dir() changes --- data/core/common.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/core/common.lua b/data/core/common.lua index fd1b1f2..925f6ae 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -84,8 +84,7 @@ end function common.path_suggest(text) local path, name = text:match("^(.-)([^/\\]*)$") - local ok, files = pcall(system.list_dir, path == "" and "." or path) - if not ok then return {} end + local files = system.list_dir(path == "" and "." or path) or {} local res = {} for _, file in ipairs(files) do file = path .. file