anchor.diff:      {foreach, local,
           fun setup_config/0,
           fun teardown_config/1, [
  -    ?_test(test_no_torrents())
  +    ?_test(test_no_torrents()),
  +    ?_test(test_ensure_exists())
       ]}}.
   
   test_no_torrents() ->
       ?assertEqual([], ?MODULE:torrents()).
   
  +test_ensure_exists() ->
  +    ?assertNot(?MODULE:exists(gproc:get_env(l, etorrent, dotdir))),
  +    ok = ?MODULE:make(),
  +    ?assert(?MODULE:exists(gproc:get_env(l, etorrent, dotdir))).
  +
   -endif.
  
positive.code: %% @end
  
  %% exported functions
  -export([torrents/0]).
  
  %% @doc List all available torrent files.
  %% @end
  
negative.code: torrents() ->
      [].
  
  %% @private Check if a file path exists.
  -spec exists(Path::string()) -> boolean().
  exists(Path) ->
      case file:read_file_info(Path) of
          {ok, _} -> true;
          {error, _} -> false
      end.
          
          
  
  -ifdef(TEST).
  
  %% @private Update dotdir configuration parameter to point to a new directory.
  setup_config() ->
  