- Documentation
- Activities
- Files & Folders
- Wait For File
Pauses the workflow until a file appears (or disappears) at the specified path, or until the timeout elapses.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
File filePath | file | Required | — | — |
Wait For waitFor | enum | Optional | appear | —appeardisappear |
Timeout (seconds) timeoutSeconds | number | Optional | 60 | — |
Poll Interval (ms) pollIntervalMs | number | Optional | 500 | — |
Output Variable outputVariable | variable | Optional | WaitForFile | — |
Output
$outputVariableObjectWait result. Reference {WaitForFile.found} (boolean, true when the condition was met within the timeout), {WaitForFile.path} (string), or {WaitForFile.waitedMs} (number, how long the wait actually took).
foundBooleanpathStringwaitedMsNumber
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Append Text File
Adds text to the end of an existing .txt file.
Copy File
Copies a file to a specified destination while keeping the original file unchanged.
Create File
Creates a new file at the specified location.
Delete File
Permanently deletes a file.
File Exists
Checks whether a file exists at the specified path.
Get File Info
Returns metadata about a file: name, size, dates, and read-only flag.