---
description: Waits for specific file trigger.
---

# Wait For Files

This activity waits for a specific event to trigger on a particular file in a user-specified folder location.

### Input

* **Change Type:**\
  The type of changes to be watched for in the user-specified folder. The following are the available options.
  * `Created` - Triggers when a new file is created at the specified location.
  * `Deleted` - Triggers when a file is deleted at the specified location.
  * `Changed` - Triggers when a file is changed at the specified location.
  * `Renamed` - Triggers when an existing file is renamed at the specified location.\

* **Filter:** [`String Argument`](../../../../getting-started/rpa-studio/arguments#string) <mark style="color:red;">`Required`</mark>\
  Specifies the filter that is to be used for monitoring the files in the given folder.
  * `"*"` - Filters all the files in the user-specified directory.
  * `"*.pdf"` - Filters all the pdf files in the user-specified directory.
  * `"*.png`" - Filters all the png files in the user-specified directory.\

* **Path:** [`String Argument`](../../../../getting-started/rpa-studio/arguments#string) <mark style="color:red;">`Required`</mark>\
  The path of the file that is to be watched for changes.

### Options

* **Limit:** [`Integer Argument`](../../../../getting-started/rpa-studio/arguments#types-of-arguments)\
  Specifies the file limit.\

*   **Continue Monitoring:**

    * True - Continues to monitor the specified file at the specified location for any events.
    * False - Stops monitoring the specified file at the specified location.


* Timeout: [`Integer Argument`](../../../../getting-started/rpa-studio/arguments#types-of-arguments)\
  Specifies the timeout period for the activity to wait for the specified file(s).

### Output

* **Output Path:** [`List Variable`](../../../../getting-started/rpa-studio/variables#list)\
  The output is a List variable that stores the full path of the file(s) that is modified in the user-specified folder.

###
