class Rails::Paths::Path

def existent

Experimental RBS support (using type sampling data from the type_fusion project).

def existent: () -> untyped

This signature was generated using 1 sample from 1 application.

Returns all expanded paths but only if they exist in the filesystem.
def existent
  expanded.select do |f|
    does_exist = File.exist?(f)
    if !does_exist && File.symlink?(f)
      raise "File #{f.inspect} is a symlink that does not point to a valid file"
    end
    does_exist
  end
end