Page 1 of 1

Obscure little request: Move file as soon as it is finished

Posted: January 15th, 2015, 4:13 am
by attlinux
Hello,

Due to a Gigabit line, I have a rather special setup of SabNZBD.
My setup is as follows:
a) Linux
b) Downloads/incomplete points to a directory in the RAM drive (my Linux has a ramdrive!)
c) Downloads/complete points to a directory on the USB harddisk.

The ramdrive directory is very useful because downloading and assembling is so much faster, it makes a difference of at least 2 megabytes/sec !
HOWEVER, since the amount of RAM is rather limited, now the need arises that as soon as one file is finished downloading, a second thread ought to move that finished file immidately from the ram drive to the "complete" directory. Preferably in an extra thread who runs in the background.

Moving that single file afterwards should be very easy to implement: Just after successfully assembling the complete file, issue a subshell (in an own thread) that moves the file and then closes the shell.

If you have an idea of how to do this, and which file to modify, I could even do this myself. I guess it's in the assembler?

Re: Obscure little request: Move file as soon as it is finis

Posted: January 15th, 2015, 6:40 am
by shypike
I think it's more useful to set a large article cache in Config->General.
But if you're willing to patch assembler.py yourself, go ahead.