class Jekyll::Reader
def get_entries(dir, subfolder)
subfolder - The String representing the directory to read.
dir - The String representing the relative path of the directory to read.
Read the entries from a particular directory for processing
def get_entries(dir, subfolder) base = site.in_source_dir(dir, subfolder) return [] unless File.exist?(base) entries = Dir.chdir(base) { filter_entries(Dir["**/*"], base) } entries.delete_if { |e| File.directory?(site.in_source_dir(base, e)) } end