86
86
void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p, Fun f);
89
void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p, Fun f, error_code& ec);
88
91
void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p);
90
95
This function will assume that the files added to the torrent file exists at path
91
96
``p``, read those files and hash the content and set the hashes in the ``create_torrent``
92
97
object. The optional function ``f`` is called in between every hash that is set. ``f``