[Libtorrent-devel] "on_finished" order of execution
sureshkumar.pp at gmail.com
Mon Oct 5 18:10:09 UTC 2009
On download finish, I need to move the file to a folder and create a symbolic link to it
in another folder.
So I have something like this in my rc file:
| on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/media/data_storage/files/;d.set_directory=/media/data_storage/files/;create_link=base_filename,/media/data_storage/download_finished/,"
Moving works fine, but the link created points to the location that
was before the move.
This more or less looks like an out of order execution case.
(Or I will have to update a variable after moving?)
Any tip on how to fix this issue?
PS: I even tried putting them in two separate commands but that didn't
| on_finished = zlink1,"create_link=base_filename,/media/data_storage/download_finished/,"
| on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/media/data_storage/Movies/files/;d.set_directory=/media/data_storage/Movies/files/"
More information about the Libtorrent-devel