Skip to main content

Write SFTP

Synopsis

This operator uploads a file to a SFTP server.

Description

To upload a local file to a SFTP server, a SFTP connection to this server has to be defined. Connection can be defined by using Connections->Create Connection on the top panel.

The file to upload is given as a FileObject at the fil inputport. File objects can be created with operators like Write CSV or Write File.

Input

con

The connection object specifying the SFTP connection.

fil

The file you want to upload.

Output

con

The passed through connection object.

fil

The passed through file object.

Parameters

Remote directory

The remote directory on the SFTP server to which the file is uploaded. Note, the remote root directory is represented by '//'

Remote filename

The name the file should have on the server.

Overwrite

If this parameter is set to true, a file with the same name in the remote directory on the server is overwritten.