Skip to content

Commit

Permalink
also listen for moved_to
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Jan 4, 2014
1 parent 682fef6 commit d3f0a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/moonc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d3f0a45

Please sign in to comment.