Add attrib on linux listener

This commit is contained in:
Thibaud Guillaume-Gentil 2011-09-03 14:25:12 +02:00
parent 18cb3471af
commit 667b248ad0

View File

@ -46,7 +46,7 @@ module Guard
def watch(directory) def watch(directory)
# The event selection is based on https://github.com/guard/guard/wiki/Analysis-of-inotify-events-for-different-editors # The event selection is based on https://github.com/guard/guard/wiki/Analysis-of-inotify-events-for-different-editors
worker.watch(directory, :recursive, :create, :move_self, :close_write) do |event| worker.watch(directory, :recursive, :attrib, :create, :move_self, :close_write) do |event|
unless event.name == "" # Event on root directory unless event.name == "" # Event on root directory
@files << event.absolute_name @files << event.absolute_name
end end