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

Want something added? Ask for it here.
Post Reply
attlinux
Newbie
Newbie
Posts: 9
Joined: October 4th, 2012, 4:31 am

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

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
Post Reply