The Get files from directory activity allows you to get a list of files from a specified folder. It is convenient to use it to find files by name, and then open, copy, rename, move them, or set new names using a template.
Activity settings
The activity settings are specified manually. To open the settings window, click on the activity on the process diagram.
Parameters Tab
The Parameters tab displays the basic activity parameters.
Name. The activity name on the process diagram. Its name is set by default when adding the activity. You can change the name in this field.
Parameter. A variable that will store the paths to the files. You can select the variable from the list or create a new one by clicking the button. It must be of the File type. For more information about how to create context variables, see Process context.
Path to the file. The file location in the file system. When specifying the path, you can use process context variables that store the path or a part of the path. To add a variable, click on the icon and select it. The value is inserted as {$variable name}. You can fill in the field manually following this format.
Mask for file search. Saving to the context variable the paths not to all files but only to the files that match a specified pattern. The pattern is set by using regular expressions.
Include subdirectories. Select Yes to search for files in all subfolders of the specified folder. To search for files only in the specified folder, choose No.
Conditions Tab
For more information about the Conditions tab, see Basic activity settings principles.
Found a typo? Highlight the text, press ctrl + enter and notify us