Nexial Automation

Test Automation Platform for everyone!

X

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

Description

This command automates the copying of one or more remote resources to a local one via SFTP protocol. The local file(s), if exist, will be overwritten. If remote represents multiple files, then local 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.
  • remote - the pattern which specifies a folder, a file or a group of files.
  • local - the target file or directory to which the remote files should be copied.

Example

Script:

Output:

See Also