Copying files instead of moving them

Any questions? Need some help?
Post Reply
dewy
Posts: 9
Joined: 20 Jan 2012, 23:24

Copying files instead of moving them

Post by dewy »

Hi guys. I've realised my previous automation method was not allowing much seeding of files to happen. So i'm curious to know if there is way to have filebot copy the files before renaming them and moving them away, leaving the files to seed and then I can delete the originals when finished seeding?
User avatar
rednoah
The Source
Posts: 22971
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Copying files instead of moving them

Post by rednoah »

Not really, but it's a good point. I'll add an easy way to do that in scripting.

With the new beta you can script things like that:

Code: Select all

def dest = args[0].copyTo("D:/filebot-temp/")
println "Rename $dest"
rename(folder:dest, format:"D:/estination/{episode}")
get the jar here:
http://sourceforge.net/projects/filebot ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22971
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Copying files instead of moving them

Post by rednoah »

Added a sample script for that here (requires r916):
http://filebot.sf.net/scripts/cpmv.groovy
:idea: Please read the FAQ and How to Request Help.
Post Reply