Skip to main content

Store: Rename File

Rename a file flowing through the workflow without touching its content. Useful right before uploading to blob storage / SFTP / Drive when the downstream system requires a specific filename convention.

The file is copied under the new name — the original file keeps its name, so other branches of the workflow that use the previous name are unaffected.

Parameters

File namerequired

Templated filename to apply (e.g. example.json or report_{year}_{month}.pdf). The pattern is a plain filename and must not contain /. The form pre-fills backup_{year}_{month}_{day}.ext by default.

Placeholders accepted:

  • {file_name}: source file name including extension
  • {file_stem}: source file name without extension
  • {file_extension}: source file extension
  • {year}: current year in calendar date
  • {month}: current month
  • {day}: current day of the month 01 to 31
  • {hour}: current hour
  • {minute}: current minute
  • {second}: current second
  • {timestamp}: current timestamp (in seconds)
  • {timestamp_ns}: current timestamp (in nanoseconds)
  • {weekday}: the day of current week
  • {week}: ISO week number
  • {ordinal}: the day of the year starting from 1
  • {offset}: current timezone offset
  • {random_uuid}: random UUID v4

The {file_name} / {file_stem} / {file_extension} tokens expand from the optional Target filename input — when that input is not connected, they are left as-is in the resulting name.

Input

Filerequired

The incoming file (or JSON payload serialized to a file) to rename.

Target filename

Optional plain text input supplying the source name that the {file_name} , {file_stem}, and {file_extension} placeholders expand from (e.g. connect the output of Store: Extract Filename).

Output

File

A copy of the incoming file carrying the new name.