'Modify download directory
@note: Needs to stop torrent in order to change the directory.
Also doesn\'t restart after directory is set, that must be called
separately.'

def set_directory(self, d):

    m = rtorrentlib.rpc.Multicall(self)
    self.multicall_add(m, 'd.try_stop')
    self.multicall_add(m, 'd.set_directory', d)
    self.directory = m.call()[(-1)]
