anchor.diff:  		{mimetypes, Type} ->
   			{[{Type, get_file}], Req, State}
   	end.
  +
  +previously_existed(Req0, State={_, {ok, #file_info{type=directory}}, _}) ->
  +    {HasTrailingSlash, _ReqPath, Req} = has_trailing_slash(Req0),
  +    if HasTrailingSlash ->
  +           {false, Req, State};
  +       true ->
  +           {true, Req, State}
  +    end;
  +previously_existed(Req, State) ->
  +	{false, Req, State}.
   
   %% Assume the resource doesn't exist if it's not a regular file.
   
  
positive.code:         _ ->
              {ok, Req, {Path, Info, Extra}}
      end.
  
  -ifdef(TEST).
  fullpath_test_() ->
  
negative.code: fullpath([Segment|Tail], Acc) ->
  	fullpath(Tail, [Segment|Acc]).
  
  rest_init_info(Req0, Path, Extra) ->
  	Info = file:read_file_info(Path, [{time, universal}]),
      {HasTrailingSlash, _ReqPath, Req} = has_trailing_slash(Req0),
  
      case {HasTrailingSlash, Info} of
          {true, {ok, #file_info{type=directory}}} ->
              DirIndexPath = filename:join(Path, "index.html"),
              case file:read_file_info(DirIndexPath) of
                  {ok, #file_info{type=regular}}=DirIndexInfo ->
  