---
schema_version: "1"
id: fb4b0d7ecd6a6d1af831e1bdccef9cb84efd814dd703be2287f5943a3f636ea5
title: Move File
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/6.6/toolbox-file-operations-move-file.md
canonical_url: https://docs.mulesoft.com/rpa-builder/6.6/toolbox-file-operations-move-file
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a5732f5b5fa302e85658e646e0f320e5706ff8194ca248f475793ff860f2b85b
description: MuleSoft Documentation Site
release: "6.6"
latest: false
---
---
product: RPA Builder
version: 6.6
---

# Move File

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This _Action Step_ moves a file from one directory to another. If the file to be moved if not
available or the moved file is already located in the destination folder, an error message will
interrupt the _Workflow_.

## Properties

**File Operation Settings:**

- **Create directory if it does not exist** If this option is enabled, Move File creates either the
  specified relative directory or the whole specified path, if this does not already exist.

- **Destination directory** Enter the path to the destination directory where the file that is to be
  moved will be saved. You can specify an absolute or relative path. If a relative path is used,
  then the path relates to the _Base Path_ variable.

- **Directory path**\* Enter the path to the directory where the file to be moved is located. You
  can specify an absolute or relative path. If a relative path is used, then the path relates to the
  _Base Path_ variable.

- **File Name** The name of the file to move.

  This field does not support placeholders. For further information, see
  [Path / file name / invalid characters](https://docs.mulesoft.com/rpa-builder/6.6/toolbox-file-operations#invalid-characters).

- **Overwrite existing file** This option enables you to overwrite an existing file with the same
  name in the destination folder.

Other Properties that are the same in all Action Steps are described in the section on **Common
Properties**. For reasons of clarity they are not shown here.

## Inbound Variables

**Directory path**\* Enter the path to the directory where the file to be moved is located. You can
specify an absolute or relative path. If a relative path is used, then the path relates to the _Base
Path_ variable.

**File Name** Enter the name here of the file that is to be moved.

## Outbound Variables

**Destination directory** The _Move File.Destination directory_ variable provides the path to the
destination directory.

**IsMoved** The _Move File.IsMoved_ variable indicates whether the file was successfully moved or
not (True/False).

**File name** The _Move File.File Name_ variable provides the name of the file that has been moved.

**Directory path** The _Move File.Directory Path_ variable provides the path to the source
directory.

## Wizard

- **Directory path** Specify the path to the file that is to be moved. You can create an absolute
  path or a path relative to the _Base Path_. The initial value is %STWS\_BASEPATH%. Select an
  existing path. You can also insert variables from the _Workflow_ in order to construct the path.
  To do so, click on the pin and select one of the available variables.

- **File name** Enter the name of the file that is to be moved. You can also insert a variable from
  the Workflow as the _File Name_. To do so, click on the pin and select one of the available
  variables.

- **Destination directory** Specify the destination path for the file that is to be moved. You can
  create an absolute path or a path relative to the _Base Path_. The initial value is
  %STWS\_BASEPATH%. Select an existing path. You can also insert variables from the _Workflow_ in
  order to construct the path. To do so, click on the pin and select one of the available variables.

- **Overwrite existing file** If this option has not been enabled, an error message will interrupt
  the _Workflow_ if there is already a file with the same name in the destination directory. If this
  option has been enabled and the file already exists, the moved file will replace it and no
  acknowledgment will be given.
