copy file by sftp()

This function can be used to copy a file d from an SFTP server a.

The file is either stored locally, see parameter e, or in an SMB share via an "SMB" channel, see parameter g.

Optionally, the file can be deleted from the server afterwards, see parameter f.

The return value of the function is "true" if successful, otherwise "false".

Parameters


Parameter

Description

a

URL of SFTP server.

b

SFTP server port.

c

ID of "SSH" channel ( with subtype "SFTP" ).

d

Path of source file (on SFTP server).

e

Path of destination file (on Integration Server).

f

(optional) "true", to delete the file from the SFTP server afterwards. Default: " false".

g

(optional) ID of an " SMB" channel.

Example


Parameter a

b

c

d

e

f

g

example.com

22

1701845163631048

./somefile.txt

./myfile.txt