Move File

Description

This functions allows Hero Platform_ to retrieve files from a file system folder via an SSH File System Connection using SFTP mode and move them to a new location. The original files are removed from the original folder.

Use

  • Connection:
    • Select an SSH connector.
  • Source Path:
    • Select the argument containing a path to the file.
      • Or click the icon to enter a static source path value.
  • Destination Path:
    • Select the argument containing a path to the file's destination.
      • Or click the icon to enter a static destination path value.

           The destination path must be a full file name, not a folder.

  • Status Field:
    • Enter a name for the status field.
      • If the status displays the value "true", the file has been moved.
      • If the status displays the value "false", the file has not been moved. See the error message field for more information.
  • Error Message Field:
    • Enter a name for the error message field.
      • If an error occurred for a field value, an error message is displayed explaining the problem.

Example

This function can be useful to ensure files are not double processed.

Type

Formulas