---
title: "Get Files In Folder Step"
url: "https://docs.robotiq.ai/en/article/get-files-in-folder-step"
language: "en"
last_updated: "2025-12-25T10:36:22.627Z"
---

# 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

1.  Drag the **Get Files In Folder** step into your workflow.
2.  (Optional) Give the step a custom name in the **Step name** field.

### Step 2: Set Up Input Parameters

1.  **Folder Path:** Type the full path to the folder. You can use an existing text variable or type the path directly.
    -   Example: `C:\MyDocuments\Reports` or `{{FolderPathVariable}}`
2.  **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: `*.*`
3.  **Include Subfolders:** Choose if you want to include files in folders inside the main one.
    -   Pick `T` to include subfolders.
    -   Pick `F` to not include subfolders. `F` is the default choice.

### Step 3: Set Up Output Parameters

1.  **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.
2.  **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\Invoices` or `{{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](https://docs.robotiq.ai/en/article/get-folders-in-folder-step)
-   [Set Variable Value Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/set-variable-value-step)
-   [Folder Exists Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/folder-exists-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/5ea67500-6fdd-432a-872b-ebd106f88771)
