class Rack::Directory

def stat(path)

File::Stat for the given path, but return nil for missing/bad entries.
def stat(path)
  ::File.stat(path)
rescue Errno::ENOENT, Errno::ELOOP
  return nil
end