The If Remote File Action checks whether a specified file exists or not on remote FTP, SFTP, FTPS, WebDAV, and popular cloud storage services.
If the specified condition is met, it executes one group of Actions. Otherwise, it executes another according to your defined workflows. You can use the Else Action to specify a group of Actions to run if the criteria are not met.
Compare | Details |
---|---|
If file | Provide a path and filename for the remote file. Use either a fixed value or a variable to specify the file whose status will be checked. Wildcards and file masks are supported. While the Upload File and Download File Actions support Linux-style file masks and wildcards, this Action supports only Windows wildcards. |
Compare | Choose which file status will lead to conditional execution of nested Actions:
When using wildcards * and ? , the Action checks and returns the first remote file that matches the specified mask and selected condition:
|
Use connection | Select an existing connection to use for remote file existence checking. If there are no defined connections, the new connection window will be opened to establish a connection to FTP, SFTP, WebDAV, Amazon S3, Google Cloud Storage, or DigitalOcean Spaces server. |
Variable Wizard | Use dynamic data input—substitute a parameter from a file, web, connected Trigger, other Actions, date and time presets, etc. |
Interconnect
- If Remote File integration and auditing—Variables (dynamic data) and Events (recorded activity). Access the filename, comparison option, and a variable indicating whether the condition was met. Additionally, information events indicating the file's current status are logged.
More comparisons…
Automation Workshop offers specialized Actions tailored to various resources. Each of them features an intuitive interface designed for a specific resource type. Explore more comparison options:
- If · Overview
- If Remote Directory · Overview
- If File · Overview
- If Folder · Overview
- If Service · Overview
- If App · Overview
File comparison Actions allow you to verify the existence or absence of files and check if a file is currently being written to or used by other applications. Folder and directory comparison Actions enable you to verify the existence or absence of local folders and remote directories, as well as check if they are empty, not empty, or does not contain files.
Branching alternatives…
While If–then logic is the most widely used approach to split a Task into two execution paths, there are additional methods to branch an automated workflow · Action flow explained
Help at your fingertips…
If you have any questions, please do not hesitate to contact our support team.