Skip to main content

Wait For File

Files & FoldersFilesReads files

Wait until a file appears, or disappears, before carrying on

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