Get Files In Folder Step
The Get Files In Folder step finds all files in a specific folder. It puts these files into a variable that holds a list of text strings. This step helps when you need to work with many files that have a certain name or file type.
How to Use Get Files In Folder
Use this step to get a list of files from a folder.
Step 1: Add the Get Files In Folder Step
- Drag the Get Files In Folder step into your workflow.
- (Optional) Give the step a custom name in the Step name field.
Step 2: Set Up Input Parameters
- Folder Path: Type the full path to the folder. You can use an existing text variable or type the path directly.
- Example:
C:\MyDocuments\Reportsor{{FolderPathVariable}}
- Example:
- Search: Say what file name or file type to look for.
- To find one specific file:
FileName.xlsx - To find all files of a certain type:
*.xlsx - To find all files:
*.*
- To find one specific file:
- Include Subfolders: Choose if you want to include files in folders inside the main one.
- Pick
Tto include subfolders. - Pick
Fto not include subfolders.Fis the default choice.
- Pick
Step 3: Set Up Output Parameters
- File list: Give a name for a new variable, or pick one you already have. This variable will hold the list of file paths as a list of text strings.
- File list count: Give a name for a new variable, or pick one you already have. This variable will hold the total number of files found as a whole number.
Parameters Explained
Step name (Optional)
- A custom name for this step in your workflow.
Folder Path (Required)
- The full path to the folder where you want to look for files.
- Example:
C:\Data\Invoicesor{{MyFolderPath}}
Search (Required)
- The file name or file type to look for.
- Example:
report.pdf,*.csv,*.*
Include Subfolders (Required)
T: The step will look for files in subfolders.F: The step will only look in the folder you specified. This is the default setting.
File list (Required)
- A variable that holds a list of text strings. It will contain the full paths of all files found.
File list count (Required)
- A variable that holds a whole number. It will contain the total number of files found.
Related Articles
- Get Folders In Folder Step
- Set Variable Value Step - Robotiq.ai Help Center
- Folder Exists Step - Robotiq.ai Help Center
Need Help?
Can't find what you're looking for? Join the Robotiq Community to get help from other users and the Robotiq team.