Calling watch on "/tmp/logs/log1.txt", if the user doesn't have access to "/tmp/logs" then there will be no errors or warnings.
Dir.glob will be called on it, will be empty, but File.file?("/tmp/logs/log1.txt") == false so it's just forgotten (https://github.com/jordansissel/ruby-filewatch/blob/master/lib/filewatch/watch.rb#L128)
File.stat on it returns "permission denied" so a patch using that might be the solution.
Calling watch on "/tmp/logs/log1.txt", if the user doesn't have access to "/tmp/logs" then there will be no errors or warnings.
Dir.glob will be called on it, will be empty, but File.file?("/tmp/logs/log1.txt") == false so it's just forgotten (https://github.com/jordansissel/ruby-filewatch/blob/master/lib/filewatch/watch.rb#L128)
File.stat on it returns "permission denied" so a patch using that might be the solution.