     end
   end
 
+  @spec path_directory_info(Plug.Conn.t, String.t)
+        :: {:ok, Plug.Conn.t, String.t} | {:error, Plug.Conn.t}
+
   defp path_directory_info(conn, path) do
     case :prim_file.read_file_info(path) do
       {:ok, file_info(type: :directory) = _file_info} ->

      footer_html(host)]
  end

  defp dir_file_list(dirpath, sortfn) do
    {:ok, list} = :prim_file.list_dir(dirpath)
    Enum.sort(

    conn
  end

  @spec uri_decode(binary) :: binary

  defp uri_decode(path) do
    try do
      URI.decode(path)
