Report dmon modify events

This commit is contained in:
Francesco Abbate
2021-10-08 23:13:50 +02:00
parent a9f6f01ed0
commit 911a3cee08
3 changed files with 20 additions and 3 deletions
+7
View File
@@ -1123,6 +1123,10 @@ function core.dir_rescan_add_job(dir, filepath)
end
function core.on_dirmonitor_modify()
end
function core.on_dir_change(watch_id, action, filepath)
local dir = project_dir_by_watch_id(watch_id)
if not dir then return end
@@ -1131,6 +1135,9 @@ function core.on_dir_change(watch_id, action, filepath)
project_scan_remove_file(dir, filepath)
elseif action == "create" then
project_scan_add_file(dir, filepath)
core.on_dirmonitor_modify(dir, filepath);
elseif action == "modify" then
core.on_dirmonitor_modify(dir, filepath);
end
end