Delete file in extracted folder, but keep the rars - AMC

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

Delete file in extracted folder, but keep the rars - AMC

Post by znerken »

Is it possible to delete the extracted MKV in the source folder, after copying to the destination folder? ONLY delete if it is extracted, if the torrent is a pure MKV, I want to keep it.

I tried the clean parameter, but that deleted the folder, and I need those RARs to keep on seeding :)


For example something like:

Code: Select all

if(extracted) file action = move
         else file action = copy

If not, then perhaps a clean job afterwards?
Thanks!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete file in extracted folder, but keep the rars - AMC

Post by rednoah »

--action copy --def clean=y might be what you're looking for.
:idea: Please read the FAQ and How to Request Help.
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

Re: Delete file in extracted folder, but keep the rars - AMC

Post by znerken »

I tried that, but that removed the whole folder with the rar's as well? Perhaps I did something wrong?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete file in extracted folder, but keep the rars - AMC

Post by rednoah »

Not sure. Can you post the logs?
:idea: Please read the FAQ and How to Request Help.
znerken
Posts: 30
Joined: 15 Feb 2018, 23:26

Re: Delete file in extracted folder, but keep the rars - AMC

Post by znerken »

rednoah wrote: 16 Feb 2018, 16:17 Not sure. Can you post the logs?


Tested again, you know what.. my fault. I had action duplicate!


This software ROCK!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete file in extracted folder, but keep the rars - AMC

Post by rednoah »

--action copy and --action duplicate are essentially the same thing. --action duplicate means hardlink if possible, copy if necessary.

So not sure what's going on here. Doesn't make sense to me anyway. :lol:
:idea: Please read the FAQ and How to Request Help.
Post Reply