Skip to content

Rename

Introduction

Rename the file. The new name can be in another folder. If it doesn't exist, it will be created.

Options

  • dest: the new filename. Supports {key} placeholders (see Loader) resolved at execution time.
  • overwrite: set to true to overwrite any already existing file (default: false)

Examples

Rename using loader placeholders:

{
    "type": "rename",
    "dest": "{created|year}-{created|month}-{created|day}_{filename}"
}

Rename based on a capture group from a condition regex (see Comparator):

{
    "type": "rename",
    "dest": "{captures.stem.date}-{captures.stem.name}.{extension}"
}