diff options
Diffstat (limited to 'script/meta/bee')
-rw-r--r-- | script/meta/bee/filesystem.lua | 2 | ||||
-rw-r--r-- | script/meta/bee/filewatch.lua | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/script/meta/bee/filesystem.lua b/script/meta/bee/filesystem.lua index 5ffeda4a..c4267b97 100644 --- a/script/meta/bee/filesystem.lua +++ b/script/meta/bee/filesystem.lua @@ -35,7 +35,7 @@ local fsStatus = {} function fsStatus:type() end ----@class fs +---@class bee.filesystem local fs = {} ---@class fs.copy_options diff --git a/script/meta/bee/filewatch.lua b/script/meta/bee/filewatch.lua new file mode 100644 index 00000000..b5211355 --- /dev/null +++ b/script/meta/bee/filewatch.lua @@ -0,0 +1,32 @@ +---@meta + +---@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 |