Move Completed Source Files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
HarryMuscle
Posts: 34
Joined: 06 Jan 2022, 22:40

Move Completed Source Files

Post by HarryMuscle »

Wondering if anyone has a setup where after the AMC script runs, the source files that were processed successfully (including all supplementary files ... basically the whole directory containing the source files) are moved to another location? I'd like to be able to see at a glance by looking at the file structure which files were processed and which weren't.

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

Re: Move Completed Source Files

Post by rednoah »

Why not use --action move and --def unsorted=y? The good files get moved as expected, the bad files get moved to the Unsorted folder. The latter will only contain the files that weren't processed successfully.



If it has to be an amc script option, then maybe like this?

Code: Select all

--def exec="mv -rvf {quote folder} /destination"
But --def exec likely isn't called on files that aren't processed, so you will likely need to have a custom shell script that will (1) pass input files to the amc script and then (2) pass the same input files to the move command.




:idea: If you're on Linux, then you can use the hard link count of a file to check if it has been processed (i.e. hardlinked to some second file path) or not. That would allow you to easily find processed / not-processed files because the file system itself will do the bookkeeping for you.
:idea: Please read the FAQ and How to Request Help.
Post Reply