---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Rename File or Directory activity

# Rename File or Directory activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Rename File or Directory activity renames a file or directory to a new name on an
SFTP server.

## Input variables

{#r_RenameFileOrDirectoryActivity__table_nwt_jwb_kt__entry__2}

| Variable | Description |
|-|-|
| sourceHost | Name or IP address of the server containing the file or directory you want to rename. |
| sourcePort | Port number to use to communicate with the target server. The default port number is 22. |
| sourceFilePath | Full path to the file or directory to rename. |
| targetFilePath | Full path to the renamed file or directory. |
| sourceCredentialTag | Specific [Credential aliases for Orchestration activities](https://www.servicenow.com/docs/access?context=c_AssignCredsOrchActivities&version=australia&pubname=australia-platform-security&ft:locale=en-US) this activity must use to run SSH commands on the host. |
[Tabelle : 1. Rename File or Directory input variables]

{#r_RenameFileOrDirectoryActivity__table_nwt_jwb_kt}

## Output variables

{#r_RenameFileOrDirectoryActivity__table_umz_4wb_kt__entry__2}

| Variable | Description |
|-|-|
| errorMessages | The executionResult.errorMessages from the [Activity designer parsing sources](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). If this variable is not null, the operation has failed. |
| result | A message saying that the operation has been successful. For example, you might see: Rename /tmp/sftp_test/subdir1 to /tmp/sftp_test/subdir2 complete. |
[Tabelle : 2. Rename File or Directory output variables]

{#r_RenameFileOrDirectoryActivity__table_umz_4wb_kt}

## Conditions

{#r_RenameFileOrDirectoryActivity__table_rkp_swb_kt__entry__2}

| Condition | Description |
|-|-|
| Success | The activity succeeded in renaming the file or directory. |
| Failure | The activity failed to rename the file or directory. |
[Tabelle : 3. Rename File or Directory conditions]

{#r_RenameFileOrDirectoryActivity__table_rkp_swb_kt}

