[Libtorrent-devel] libtorrent for kde, strange sigc++ header problems
Jari Petter Sundell
jaris at student.matnat.uio.no
Thu Feb 24 13:18:46 UTC 2005
On Thu, 24 Feb 2005, Felix Berger wrote:
> Ok, I got it. Now I don't know how to specify the file the download should be
> saved to. Do you have some concise example code or manual, it's a little
> cumbersome to look all over rtorrent for the various bits of information.
I've been too busy writing code to make any manuals yet. ;) I'll try to
rectify that as soon as possible.
There are two parts to specifying where the file paths.
Download::set_root_dir(std::string) specifies the base directory where the
files in the torrent are saved to.
Download::get_entry(int) gives a Entry class for each file in the torrent.
By calling Entry::get_path() you get the path of that file, and
Entry::set_path_list(...) can be used to modify it. These paths are
relative to the root directory.
More information about the Libtorrent-devel