Closed GoogleCodeExporter closed 9 years ago
What does it mean to rename a directory?
My guess would be to, on the torrent_info object, rename all files in this
directory to have a different name for this one directory segment. This is then
presumably done before the torrent is added with session::add_torrent().
Also, presumably the file that should not be downloaded is renamed similarly,
right? It will most likely still be created, and if it's still in the old
folder name, that folder will be created. If this is not desired, all
unselected files should probably be renamed and put in a separate directory,
perhaps it could be called ".parts" to conveniently be hidden.
Please confirm my assumptions, because my first guess would be that this is the
cause of (1).
As for (2), my guess there would be that the priorities of the unselected files
are set _after_ the torrent is added. If that is the case, it's too late. The
files have already been allocated. Instead, the priorities must be set as part
of the add_torrent_params structure. If set there, libtorrent will know the
file's priorities at the time of allocating them, and it will not allocate
unselected files.
Original comment by arvid.no...@gmail.com
on 20 May 2014 at 4:47
Original comment by arvid.no...@gmail.com
on 29 Jun 2014 at 8:58
Original issue reported on code.google.com by
magic63k...@gmail.com
on 18 May 2014 at 9:43