lib/slowfat/dir.rb
def file_entry(filename)
      @entries.each do |dentry|
        full_dentry_filename = dentry.extension.length > 0 ? "#{dentry.filename}.#{dentry.extension}".downcase : dentry.filename.downcase
        return dentry if dentry.type == :file and filename.downcase == full_dentry_filename
      end

      nil
    end
##
# Return a directory entry for a specific file within this directory
# @param filename [String] the name of the file to access
# @return [Dentry] the directory entry object matching the requested file
Return a directory entry for a specific file within this directory
Return a directory entry for a specific file within this directory
def file_entry(filename)
      @entries.each do |dentry|
        full_dentry_filename = dentry.extension.length > 0 ? "#{dentry.filename}.#{dentry.extension}".downcase : dentry.filename.downcase
        return dentry if dentry.type == :file and filename.downcase == full_dentry_filename
      end
      nil
    end
def file_entry ( filename ) @entries . each do | dentry | full_dentry_filename = dentry . extension . length > 0 ? "#{dentry.filename}.#{dentry.extension}" . downcase : dentry . filename . downcase return dentry if dentry . type == :file and filename . downcase == full_dentry_filename end nil end
Return a directory entry for a specific file within this directory
Return a directory entry for a specific file within this directory
the directory entry object matching the requested file
the directory entry object matching the requested file
Dentry
filename
the name of the file to access
the name of the file to access