summaryrefslogtreecommitdiff
path: root/script/glob
diff options
context:
space:
mode:
Diffstat (limited to 'script/glob')
-rw-r--r--script/glob/gitignore.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua
index 73e20cbf..09be1415 100644
--- a/script/glob/gitignore.lua
+++ b/script/glob/gitignore.lua
@@ -163,6 +163,8 @@ function mt:getRelativePath(path)
return path
end
+---@param callback async fun()
+---@async
function mt:scan(path, callback)
local files = {}
if type(callback) ~= 'function' then
@@ -170,6 +172,7 @@ function mt:scan(path, callback)
end
local list = {}
+ ---@async
local function check(current)
local fileType = self:callInterface('type', current)
if fileType == 'file' then