summaryrefslogtreecommitdiff
path: root/script/meta/bee/filewatch.lua
blob: 813548b225c4781ba19ddb1ef6056ef7f3c1146e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---@meta bee.filewatch

---@class bee.filewatch.instance
local instance = {}

---@param path string
function instance:add(path)
end

---@param enable boolean
---@return boolean
function instance:set_recursive(enable)
end

---@param enable boolean
---@return boolean
function instance:set_follow_symlinks(enable)
end

---@param callback? fun(path: string):boolean
---@return boolean
function instance:set_filter(callback)
end

---@class bee.filewatch
local fw = {}

---@return bee.filewatch.instance
function fw.create()
end

return fw