File Operations
Rename File Node
Rename a file
Rename an existing file, assigning a new name along with the file extension (ensure to include file extension).
Node Inputs
- File to rename: The file to rename.
- Type:
File
- Type:
- New filename: The new name of the file, including its extension (e.g., file.txt, file.pdf, file.csv).
- Type:
Text
- Type:
For providing the file, you have two options:
- If toggle is on Upload: Upload a file by clicking the upload button
- If toggle is on Variable: Reference files from other nodes.
Node Outputs
- Renamed File: The renamed file
- Type:
File
- Example usage:
{{rename_file_0.renamed_file}}
- Type:
Example
The below example shows a pipeline that takes a pdf file and renames it to: Renamed_File.pdf
.
- Input Node: Contains the file you want to rename.
- Type:
File
- Type:
- Rename File Node: Renames the file to a new name.
- File to rename:
{{input_0.file}}
- New filename:
Renamed_File.pdf
- File to rename:
- Output: The renamed file
- Output:
{{rename_file_0.renamed_file}}
- Output: