mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
tweak inotify
This commit is contained in:
parent
9d11356d7e
commit
97d8bc2e66
@ -294,9 +294,9 @@ function create_watcher(files)
|
||||
print(("%s with inotify [%s]"):format(msg, plural(#dirs, "dir")))
|
||||
|
||||
local wd_table = {}
|
||||
local handle = inotify:init()
|
||||
local handle = inotify.init()
|
||||
for _, dir in ipairs(dirs) do
|
||||
local wd = handle:addwatch(dir, inotify.IN_MODIFY)
|
||||
local wd = handle:addwatch(dir, inotify.IN_CLOSE_WRITE)
|
||||
wd_table[wd] = dir
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user