class Opal::Hike::Index

def entries(path)

not exist.
`~` swap files. Returns an empty `Array` if the directory does
A cached version of `Dir.entries` that filters out `.` files and
def entries(path)
  @entries[path.to_s] ||= begin
    pathname = Pathname.new(path)
    if pathname.directory?
      pathname.entries.reject { |entry| entry.to_s =~ /^\.|~$|^\#.*\#$/ }.sort
    else
      []
    end
  end
end