Skip to content

File Rename

Renames one or more files generated by previous nodes (CSV Create, Save to Excel, ZIP Create, etc). Supports individual or batch renaming with automatic counter, dynamic variables and extension control.

FieldTypeRequiredDescription
filestextareaNoFile path(s). If empty, uses data.filePath from previous node
namePatterntextYesPattern for new name. Variables: {{filename}}, {{counter}}, {{index}}, {{total}}, {{field}}
counterStarttextNoCounter starting number. Default: 1
counterPadselectNoCounter digits: 1, 2, 3, 4 or 5. Default: 3 (001, 002…)
keepExtensionselectNoKeep original extension. Default: Yes
newExtensiontextNoNew extension (only if keepExtension=No)
VariableDescriptionExample
{{filename}}Original name without extensionreport-1712345678
{{counter}}Padded counter (001, 002…)001
{{index}}Zero-based index (0, 1, 2…)0
{{total}}Total number of files5
{{field}}Any data field{{order_number}}
{
"filename": "dat-001.csv",
"filePath": "/temporal/cli_123/dat-001.csv",
"urlPath": "https://us1.floogos.com/download/cli_123/dat-001.csv",
"original": "report-1712345678.csv"
}
{
"files": [
{ "original": "file1.csv", "renamed": "dat-001.csv", "filePath": "...", "urlPath": "...", "counter": "001", "index": 0 },
{ "original": "file2.csv", "renamed": "dat-002.csv", "filePath": "...", "urlPath": "...", "counter": "002", "index": 1 }
],
"total_renamed": 2,
"total_errors": 0
}
{
"namePattern": "DTO-{{counter}}",
"counterStart": "61",
"counterPad": "5"
}

Result: DTO-00061.csv, DTO-00062.csv, DTO-00063.csv

{
"namePattern": "{{order_number}}-invoice"
}

Result: PT14684-invoice.pdf

{
"namePattern": "export-{{counter}}",
"keepExtension": "false",
"newExtension": ".txt"
}

Result: export-001.txt, export-002.txt

  • Keeps original extension by default (.csv, .xlsx, .pdf, etc)
  • Invalid filename characters (< > : " / \ | ? *) are replaced with _
  • Missing files are reported in errors but don’t stop the process
  • Single file returns flat format { filename, filePath, urlPath } compatible with other nodes
  • Counter resets on each node execution (not persistent between runs)