anchor.diff:  %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   
   %% NOTE: this is a copy of cowboy_static.erl with minimal modifications
  +%% to make dir without path redirect we need to make the REST state machine
  +%% reach the moved_temporarily callback, for that we need to return false on
  +%% resource_exists and true on previously_existed, also we need to return
  +%% false in forbidden when it's a dir without trailing slash
  +%% http://ninenines.eu/docs/en/cowboy/HEAD/guide/rest_flowcharts/
   
   -module(iorio_cowboy_static).
   
  
positive.code:         _ ->
              {ok, Req, {Path, Info, Extra}}
      end.
  
  -ifdef(TEST).
  fullpath_test_() ->
  
negative.code: 
  %% Directories, files that can't be accessed at all and
  %% files with no read flag are forbidden.
  %% Directories that have no trailing slash aren't forbidden since later
  %% will be redirected to the same path with a trailing slash
  
  -spec forbidden(Req, State)
  	-> {boolean(), Req, State}
  	when State::state().
  forbidden(Req0, State={_, {ok, #file_info{type=directory}}, _}) ->
      {HasTrailingSlash, _ReqPath, Req} = has_trailing_slash(Req0),
      if HasTrailingSlash ->
             {true, Req, State};
         true ->
             {false, Req, State}
      end;
  forbidden(Req, State={_, {error, eacces}, _}) ->
  	{true, Req, State};
  forbidden(Req, State={_, {ok, #file_info{access=Access}}, _})
  