Move files after 7zip, but only copy if no 7zip needed?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Move files after 7zip, but only copy if no 7zip needed?

Post by 10481 »

So, for the majority of downloads, 7zip is required to extract the contents and then I have them set to be moved, which works perfectly. What I'm wondering is if there's a way to keep that function, but basically add an "if .avi copy don't move" function to the script. Sometimes files don't come zipped and when filebot processes just a plain avi file for example, it moves it and in the process breaks the seeding.

Is that possible already and I'm missing it, or is it something that can be added?

Thanks.
User avatar
rednoah
The Source
Posts: 23098
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Move files after 7zip, but only copy if no 7zip needed?

Post by rednoah »

You should never use --action move anyway. The example uses --action copy for good reason.

If you use --action copy with --def clean=y you'll probably get what you want.
--def clean=y Automatically remove empty folders and clutter files that may be left behind after moving the video files or temporary extracted files after copying
:idea: Please read the FAQ and How to Request Help.
10481
Posts: 10
Joined: 06 Nov 2014, 21:28

Re: Move files after 7zip, but only copy if no 7zip needed?

Post by 10481 »

Okay, I'll try that. Thanks for the quick reply
Post Reply