Valid FTP commands

Valid FTP commands

Valid FTP commands for the SFTP connector are summarised in the following sections:

File retrieval

FTP command
Summary

Retrieve a file, load its content into the process flow as a payload, then move the file to another directory on the remote server. If multiple files are retrieved, multiple payloads are generated (one payload per file).

Retrieve file(s), load content into the process flow as payload(s) and then delete file(s) from the remote server. If multiple files are retrieved, multiple payloads are generated (one payload per file).

File operations

FTP command
Summary

Add content from target file(s) to the end of source file(s).

Copy file(s) from one directory to another directory on the remote server (so the file exists in both directories).

Rename file(s). This operation can be combined with moving the files.

Remove file(s).

put_non_empty

Upload file(s) only if it has content (i.e. avoid uploading empty files).

Information & metadata

FTP command
Summary

List files in a directory on the remote server. Information is loaded into the process flow as a single payload.

size

Get file sizes from a directory on the remote server. Information is loaded into the process flow as a single payload.

modified

Get the last modified date/time (UTC format) from a directory on the remote server. Information is loaded into the process flow as a single payload.

mime

Get/detect MIME type of file(s). A boolean value is returned for each file.

exists

Check if a file exists.

Last updated

Was this helpful?