From d3f0a455e75dfabe5461cd566b15049063a36820 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Sat, 4 Jan 2014 15:41:20 -0800 Subject: [PATCH] also listen for moved_to --- bin/moonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/moonc b/bin/moonc index 7c6f1f3..dec5ad7 100755 --- a/bin/moonc +++ b/bin/moonc @@ -314,7 +314,7 @@ function create_watcher(files) local wd_table = {} local handle = inotify.init() for _, dir in ipairs(dirs) do - local wd = handle:addwatch(dir, inotify.IN_CLOSE_WRITE) + local wd = handle:addwatch(dir, inotify.IN_CLOSE_WRITE, inotify.IN_MOVED_TO) wd_table[wd] = dir end