lib/ferver/ferver_directory.rb
# Iterate through files in specified dir for valid files
#
Iterate through files in specified dir for valid files
Iterate through files in specified dir for valid files
def find_files
      [].tap do |results|
        Dir.foreach(full_path) do |file_name|
          next if file_name == "." || file_name == ".."
          next if file_name =~ /^\./ && !configuration.serve_hidden?
          found_file = FoundFile.new(full_path, file_name)
          results << found_file if found_file.valid?
        end
      end
    end
def find_files [ ] . tap do | results | Dir . foreach ( full_path ) do | file_name | next if file_name == "." || file_name == ".." next if file_name =~ / ^ \. / && ! configuration . serve_hidden? found_file = FoundFile . new ( full_path , file_name ) results << found_file if found_file . valid? end end end
Iterate through files in specified dir for valid files
Iterate through files in specified dir for valid files