Move File
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.
-
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.