summaryrefslogtreecommitdiff
path: root/script/brave/work.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-13 19:29:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-13 19:29:49 +0800
commit86300e67be801568667fc01328134022d3324a9e (patch)
tree4ccebbb3f8a6005f5f8f6dfc4845cdbb263a0b10 /script/brave/work.lua
parentea0dbf6309c5205fe63400bb71d47676a3305835 (diff)
downloadlua-language-server-86300e67be801568667fc01328134022d3324a9e.zip
fix
Diffstat (limited to 'script/brave/work.lua')
-rw-r--r--script/brave/work.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/brave/work.lua b/script/brave/work.lua
index 24debe83..e1c08a79 100644
--- a/script/brave/work.lua
+++ b/script/brave/work.lua
@@ -43,7 +43,7 @@ end)
brave.on('listDirectory', function (uri)
local path = fs.path(furi.decode(uri))
local uris = {}
- for child in path:list_directory() do
+ for child in fs.pairs(path) do
local childUri = furi.encode(child:string())
uris[#uris+1] = childUri
end