title: How to make Ruby's Find.find follow symlinks?
body: <p>I have a file hierarchy and some of the sub-directories are relative symlinks. I am using <a href="http://apidock.com/ruby/Find" rel="noreferrer">Ruby's <code>Find.find</code></a> to crawl through these dirs and find some specific files. However it's not looking into any directory which is a symlink (it follows files which are symlinks).</p>
  
  <p>Looking at the <a href="http://apidock.com/ruby/Find/find" rel="noreferrer">source code</a> it seems the problem is because it's using <code>File.lstat(file).directory?</code> to test if something is a directory. This returns <code>false</code> for symlinks but <code>File.stat.directory?</code> returns <code>true</code>.</p>
  
  <p>How can I make <code>Find.find</code> follow symlinks, short of monkey patching it to use <code>File.stat</code> instead of <code>File.lstat</code>?</p>