Icon

Rename Files thru Transfer Node

Rename Files<br /><br />This example workflow shows how to edit a filename or rename a file completely. <br />The new files are written into the same folder (in this example the workflow data area). When the option "delete source files" is checked in the "Transfer Files (Table)" node, the files with the original filename will be removed and only the renamed files are in the folder.

URL: KNIME File Handling Guide https://docs.knime.com/latest/analytics_platform_file_handling_guide/index.html
URL: KNIME Forum (91517) https://forum.knime.com/t/transfer-files-table-doesnt-rename-anymore/91517/3?u=mlauber71

This example workflow shows how to edit a filename or rename a file completely.

The new files are written into the same folder (in this example the workflow data area). When the option "delete source files" is checked in the "Transfer Files (Table)" node, the files with the original filename will be removed and only the renamed files are in the folder.

Adapted from: https://hub.knime.com/s/ssm8HaLBUlbUl2OJ

clean up the /data/ folder

List files
List Files/Folders
Delete Files/Folders (Table)
write to datafolder(keep original file)
Transfer Files (Table)
edit filename_new1
Column Expressions (legacy)
Path -> Location
Path to String
URL to File Path
Data Generator
Table Writer
write to datafolder(delete source)
Transfer Files (Table)
List files
List Files/Folders
_new2new_file_namenew_file_path
Expression
New_Path
String to Path

Nodes

Extensions

Links