[DOCS] {historic} file path bindings

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
The Source
Posts: 23060
Joined: 16 Nov 2011, 08:59
Location: Taipei

[DOCS] {historic} file path bindings

Post by rednoah »

The {historic} dynamic binding will give you access to the original file path from the local rename history for the file at hand.

e.g. previous file path:

Format: Select all

{ historic.f }

e.g. previous folder path:

Format: Select all

{ historic.folder }

e.g. previous file name:

Format: Select all

{ historic.fn }

e.g. you can use the {historic} binding in combination with --file-filter to select only files that have not yet been processed and thus don't yet have a record in the local rename history:

Groovy: Select all

none{ historic }

{historic.f} is particularly useful for -exec expressions that need to access the previous file path (as opposed to the new current file path) for newly processed files:
rednoah wrote: 14 Sep 2019, 19:43 e.g. call a custom script and pass along file paths and metadata:

Shell: Select all

-exec /path/to/script.sh {f} {historic.f} {json}
:arrow: [DOCS] -exec custom post-process commands
:idea: Please read the FAQ and How to Request Help.
Post Reply