class Rack::Directory

def initialize(root, app = nil)

Set the root directory and application for serving files.
def initialize(root, app = nil)
  @root = ::File.expand_path(root)
  @app = app || Files.new(@root)
  @head = Head.new(method(:get))
end