# frozen_string_literal: true require 'time' module Rack # Rack::Directory serves entries below the +root+ given, according to the # path info of the Rack request. If a directory is found, the file's contents # will be presented in an html based index. If a file is found, the env will # be passed to the specified +app+. # # If +app+ is not specified, a Rack::Files of the same +root+ will be used. class Directory DIR_FILE = "
%s%s%s%s
\n" DIR_PAGE_HEADER = <<-PAGE

# %s

Name | Size | Type | Last Modified
--- | --- | --- | ---
PAGE DIR_PAGE_FOOTER = <<-PAGE