title: How to check if a directory/file/symlink exists with one command in Ruby
body: <p>Is there a single way of detecting if a directory/file/symlink/etc. entity (more generalized) exists? </p>
  
  <p>I need a single function because I need to check an array of paths that could be directories, files or symlinks. I know <code>File.exists?"file_path"</code> works for directories and files but not for symlinks (which is <code>File.symlink?"symlink_path"</code>). </p>