anchor.diff:  -export([make/0,
            torrents/0,
            copy_file/1,
  +         copy_path/1,
            info_path/1,
  -         info_hash/1]).
  +         info_hash/1,
  +         read_info/1,
  +         write_info/2]).
   
   %% private functions
   -export([exists/1]).
  
positive.code:     ?assertEqual({error, enoent}, ?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))).
  
  test_copy_torrent() ->
      ok = ?MODULE:copy_file(testpath()),
      ?assertEqual({ok, [testfile()]}, ?MODULE:torrents()).
  
  test_info_filename() ->
      ok = ?MODULE:copy_file(testpath()),
      ?assertEqual({ok, [testfile()]}, ?MODULE:torrents()).
  
  test_info_hash() ->
      ?assertEqual(testhash(), ?MODULE:info_hash(testpath())).
  
  -endif.
  
negative.code: 
  testhash() ->
      <<142,215,218,181,31,70,216,236,194,208,141,204,28,28,160,136,237,138,83,180>>.
  
  testhex()  -> "8ed7dab51f46d8ecc2d08dcc1c1ca088ed8a53b4".
  testcopy() -> "8ed7dab51f46d8ecc2d08dcc1c1ca088ed8a53b4.torrent".
  testinfo() -> "8ed7dab51f46d8ecc2d08dcc1c1ca088ed8a53b4.info".
  
  
  
  
  dotfiles_test_() ->
  