hardlinking downloads

General support for problems installing or using Deluge
Post Reply
Abbott
Member
Member
Posts: 13
Joined: Tue Nov 19, 2013 8:11 am

hardlinking downloads

Post by Abbott »

Hi guys,

Is there an easy way to use the execute plugin to hardlink the downloaded files of a torrent file to another directory?

Code: Select all

ln /path/to/downloads/$torrentname /new/directory
will not work unless the torrent has only a single file and it is named exactly the same as the torrent (which is not always the case). It will fail completely if the downloaded files are in a folder, because hard links don't work on directories. I don't know much python but my guess would be that a script could be written to pull the names of the files from a task using the $torrentid argument and some stuff from the deluge api. I was hoping there would be an easier way that I am overlooking because I am extremely underqualified to write such a script.

Thanks,
Abbott
Post Reply