class Bootsnap::LoadPathCache::Path

def non_directory?

True if the path exists, but represents a non-directory object
def non_directory?
  !File.stat(path).directory?
rescue Errno::ENOENT, Errno::ENOTDIR
  false
end