Skip to main content

Wait For File

Files & FoldersFilesReads files

Pauses the workflow until a file appears (or disappears) at the specified path, or until the timeout elapses.

Inputs

NameTypeRequiredDefaultDescription
File
filePath
fileRequired
Wait For
waitFor
enumOptionalappear
appeardisappear
Timeout (seconds)
timeoutSeconds
numberOptional60
Poll Interval (ms)
pollIntervalMs
numberOptional500
Output Variable
outputVariable
variableOptionalWaitForFile

Output

$outputVariableObject

Wait 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).

  • foundBoolean
  • pathString
  • waitedMsNumber

Compatibility

WindowsLinuxAttendedUnattended

Related activities