Dear all,
FYI, when listening by using the Listen gem as the followings, it does not break from the block even when something added to the directory. I am not sure if it is expected behaviour or not.
Listen.to('.',:relative_paths => true) do |m,a,r|
break unless a.empty?
end
Instead, the followings stop listening when something added to the directory.
l = Listen.to('.',:relative_paths => true)
l.change do |m,a,r|
l.stop unless a.empty?
end
l.start
Cheers,
Kyoma