[Libtorrent-devel] rTorrent don't delete the data files when
removing incomplete downloads
Taraszka Krzysztof
krzysztof.taraszka at gnuhosting.net
Sun Oct 19 10:56:12 UTC 2008
Josef Drexler pisze:
> On Oct 19, 2008, at 11:34 AM, Taraszka Krzysztof wrote:
>> rTorrent don't delete the data files when removing incomplete
>> downloads from ncurses ui.
>
> I don't think that's quite right. The way you set it up, it will
> delete data files when you remove the incomplete download with the
> ncurses ui, but NOT when you've added the download from it.
>
>> schedule =
>> watch_directory,10,10,"load_start=~/Download/watch_stuff/*.torrent,d.set_custom2=1"
>>
>> on_finished = set_done_var,d.set_custom2=
>> on_erase =
>> rm_files,"branch=d.get_custom2=,\"execute={rm,-rf,--,$d.get_base_path=}\""
>>
>>
>> Yes. it's works but only for torrents which was added to watch_stuff
>> directory. When i load torrent from ui, it don't remove incompete
>> data. The same problem exist when I remove torrents from nTorrent
>> client (via xmlrpc)
>
> That's because you've set it up that way. When added from the watch
> directory, the downloads "custom2" is set. It's cleared when the
> download finishes. When you remove the download and it's still set,
> the data files will be deleted.
>
> But when you add it from the UI, custom2 won't be set. Unless you set
> it manually afterwards with Ctrl-X d.set_custom2=1 then it should work
> as you want.
>
Ok, i will try this solution.
It should not be done automatically ? It will be facilitate for newbies
who don't care of incomplete downloads or just forget to delete it manually.
I have:
rtorrent/downloaded - there are data is moving when finished downloads
(and ofcourse data is seeding from this directory)
rtorrent/downloading - incomplete downloads directory
rtorrent/session - session directory
rtorrent/watch - watching directory for new data.
--
Krzysztof Taraszka
GNUHosting.net
ul. Podlas 36d/9
41-703 Ruda Slaska
POLAND
NIP: 641-223-32-48
tel: +48 0 605 745 084
More information about the Libtorrent-devel
mailing list