rakshasa/rtorrent — Issue #22: Set Directory and Load in one go?
Author: blaenk
Created: 2012-01-12 05:50:05+00:00
State: open

Currently, as far as I know, when one issues a `set_directory` call followed by a `load_start` call, to essentially set the directory for the torrent about to be added, the fact that they are two separate calls opens it up to race conditions, resulting in torrents being saved to the wrong directory. Is there, or can there be in the future, a command that lets one specify a torrent and a directory destination in one self-contained call?

On the other hand, is something like this already possible by avoiding the call to `load_start`? For example, can I do a normal `load` and then use something like `d.set_directory` followed by a `d.start` call? The problem is, how would I get the hash of that torrent that was just `load`ed in order to issue the two subsequent calls? I just tried running it and it seems the server only responds with an `i4:0` and not the hash of the torrent.