Move a file from one directory to another

Last published at: April 26th, 2021

Description:

Moves a file from one directory to another on the server

Inputs

  • moveToDirectory – full path for the directory on the server
  • filePath – full path to the file on the server
  • overwrite – overwrite files on destination

Returns

  • True – step executed successfully
  • False – step failed to execute 

Usage:

Example:

Let’s build and execute the movefileDef example.          

  • Create a new definition called “movefileDef
  • Select the definition and click the “design” button
  • Drag a movefile step from the toolbox
  • Connect the dots between the start and movefile step

  • Click on the “movefile” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Save the workflow definition, create a workflow instance and execute. Step should move file from one directory to another within server.