Skip to content

SFTP Exists

Type: sftp-exists  ·  Package: SFTP Activities v1.0.0  ·  Output: boolean

Checks if a file or folder exists on the server and returns true/false. Useful for waiting for a file to appear before downloading it, or for not overwriting an existing one.

Check if remotePath exists on the server. Does not fail if it does not exist — returns false.

ParameterEditorDescription
remotePathexpressionRemote route to check.
ParameterEditorDescription
sessionsessionSFTP Connect session. Within a body it is inherited.

Returns a boolean: true if it exists.

SFTP Exists remotePath = "/salida/reporte.csv" → output: hayReporte
If condition = = hayReporte
└─ then:
SFTP Download remotePath = "/salida/reporte.csv" localPath = "C:/descargas/reporte.csv"