> For the complete documentation index, see [llms.txt](https://documentation.astera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.astera.com/faqs/sources/how-do-i-process-multiple-files-in-a-directory-with-a-single-execution-of-a-flow.md).

# How do I process multiple files in a directory with a single execution of a flow?

To process files in a directory, the File System Items Source object is used. This object is available in dataflows, workflows and API flows. File System Items Source takes the path of a folder or directory and executes the object connected to its output for every file in the directory, when configured as a ‘loop’. &#x20;

For processing multiple files in a dataflow, file source objects, such as Delimited File Source, and Excel File Source, can be used as a transformation object, and the input file path can be provided dynamically for all the files in a folder using the File System Item Source object. &#x20;

Click [here](https://documentation.astera.com/dataflows/sources/file-system-items-source) to learn how File System Items Source is used in a dataflow and workflow.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/faqs/sources/how-do-i-process-multiple-files-in-a-directory-with-a-single-execution-of-a-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
