> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rename File Node

> Rename a file

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/rename-file.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=dce0f895c1d973f3a7a16814b3023379" alt="Rename File" width="583" height="342" data-path="images/platform/pipelines/data-transformation/rename-file.png" />

Rename an existing file, assigning a new name along with the file extension (ensure to include file extension).

## Node Inputs

1. File to rename: The file to rename.
   * Type: `File`
2. New filename: The new name of the file, including its extension (e.g., file.txt, file.pdf, file.csv).
   * Type: `Text`

<Note>
  For providing the file, you have two options:

  1. If toggle is on Upload: Upload a file by clicking the upload button
  2. If toggle is on Variable: Reference files from other nodes.
</Note>

## Node Outputs

1. Renamed File: The renamed file
   * Type: `File`
   * Example usage: `{{rename_file_0.renamed_file}}`

## Example

The below example shows a pipeline that takes a pdf file and renames it to: `Renamed_File.pdf`.

1. Input Node: Contains the file you want to rename.
   * Type: `File`
2. Rename File Node: Renames the file to a new name.
   * File to rename: `{{input_0.file}}`
   * New filename: `Renamed_File.pdf`
3. Output: The renamed file
   * Output: `{{rename_file_0.renamed_file}}`

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/rename-file-example.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=56ca3260c0307c3473d91d10720973f3" alt="Rename File Example" width="1901" height="833" data-path="images/platform/pipelines/data-transformation/rename-file-example.png" />
