WatchFile function

This function is used to watch a file of given type in a particular folder and returns the path of the file.

Select SET command from the action dropdown and provide a variable name in Element key where output will be stored, edit parameter section and click on Form, select functions from the dropdown and select WATCH function.

Here, folder is path of the folder to watch extension is the file extension which we are trying to watch like txt, pdf or CSV prefix is any string before the file name timeout is the timeout value in seconds order by is way of filtering the files and you can use date, size or name track is either ascending or descending

After completing the step it will look as below:

Was this page helpful?