     h in only or match?({0, _}, prefix != [] and :binary.match(h, prefix))
   end
 
-  defp serve_directory_listing({:ok, conn, _file_info, path}, at, segments) do
-    subpath = at <> "/" <> :erlang.list_to_binary(segments)
+  defp serve_directory_listing({:ok, conn, _file_info, path}, segments) do
+    subpath = :erlang.list_to_binary(segments)
     conn
     |> put_resp_header("content-type", "text/html")
     |> send_resp(200, make_ls(path, subpath))
     |> halt
   end
 
-  defp serve_directory_listing({:error, conn}, _at, _segments) do
+  defp serve_directory_listing({:error, conn}, _segments) do
     conn
   end
 


      path = path(from, segments)
      directory_info = file_directory_info(conn, path)
      serve_directory_listing(directory_info, at, segments)
    else
      conn
    end

    :erlang.list_to_binary(
      Enum.map(pathlist,
               fn(x) ->
                 gen_ls_entry(:erlang.list_to_binary(x)) end))
    <>
    # postamble
    """
