The DIR Block is essential to enumerate files of a given folder. It allows the user to generate a workflow for hotfolder.

To make sure that only files of a given type are enumerated it is a MUST to define the filetype via the Extension parameter

The files are saved as comma seperated list in the variable defined in ResultName. 

[dirblock]
Type=dir
Extension=pdf
Directory=C:\pdf
ResultName=files
Nextblock=LoadAloaha

Please note: The comma seperated list saved in variable defined by ResultName can be evaluated with the foreach block.