SFTP Exists
SFTP Exists
Section titled “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.
How it works
Section titled “How it works”Check if remotePath exists on the server. Does not fail if it does not exist — returns false.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
remotePath | expression | Remote route to check. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | SFTP Connect session. Within a body it is inherited. |
Output
Section titled “Output”Returns a boolean: true if it exists.
Example
Section titled “Example”SFTP Exists remotePath = "/salida/reporte.csv" → output: hayReporteIf condition = = hayReporte └─ then: SFTP Download remotePath = "/salida/reporte.csv" localPath = "C:/descargas/reporte.csv"Related activities
Section titled “Related activities”- SFTP List Directory — listr varios archivos.
- SFTP Create Directory — create a folder if it does not exist.