anchor.diff:  fullpath([Segment|Tail], Acc) ->
   	fullpath(Tail, [Segment|Acc]).
   
  -rest_init_info(Req, Path, Extra) ->
  +rest_init_info(Req0, Path, Extra) ->
   	Info = file:read_file_info(Path, [{time, universal}]),
  -
  -    case Info of
  -        {ok, #file_info{type=directory}} ->
  +    {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 ->
  
positive.code: 
  %% Directories, files that can't be accessed at all and
  %% files with no read flag are forbidden.
  
  -spec forbidden(Req, State)
  	-> {boolean(), Req, State}
  	when State::state().
  forbidden(Req, State={_, {ok, #file_info{type=directory}}, _}) ->
  	{true, Req, State};
  forbidden(Req, State={_, {error, eacces}, _}) ->
  	{true, Req, State};
  forbidden(Req, State={_, {ok, #file_info{access=Access}}, _})
  
negative.code: -export([resource_exists/2]).
  -export([last_modified/2]).
  -export([generate_etag/2]).
  -export([moved_temporarily/2]).
  -export([previously_existed/2]).
  -export([get_file/2]).
  
  -ignore_xref([init/3, rest_init/2, malformed_request/2, forbidden/2,
  