Nexial Automation

Test Automation Platform for everyone!

X

ssh » sftpCopyTo(var,profile,local,remote)

Description

This command automates the copy of one or more local resources to a remote path via SFTP. The remote resource, if exist, will be overwritten. If local represents multiple files, then remote is expected to be a directory. Wildcard is supported - for example, /my_folder/my_data/my_files*.

For output process via var, check out Command Output Processing

Parameters

  • var - the variable name that references the outcome of this command.
  • profile - the profile that encapsulates the SSH connectivity and security information.
  • local - the file(s) to move from a local directory (wildcard supported).
  • remote - the target file or directory.

Example

Script:

Output:

See Also