Files
langflow/docs/versioned_docs/version-1.8.0/Components/directory.mdx
Mendon Kissling b36444f5d9 docs: add versioning (#12218)
* fix: nightly now properly gets 1.9.0 branch (#12215)

before it was attempting to pull release-notes as letters are alphanumerically after numbers when we sort -V then grab tail
now we only look at branch names that follow the pattern '^release-[0-9]+\.[0-9]+\.[0-9]+$'

* docs: add search icon (#12216)

add-back-svg

* initial-content

* cut-1.8-release-and-include-next-version

* stage-1.8.0-and-next

---------

Co-authored-by: Adam-Aghili <149833988+Adam-Aghili@users.noreply.github.com>
2026-03-18 20:03:49 +00:00

33 lines
1.8 KiB
Plaintext

---
title: Directory
slug: /directory
---
import Icon from "@site/src/components/icon";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import PartialParams from '@site/docs/_partial-hidden-params.mdx';
import PartialDevModeWindows from '@site/docs/_partial-dev-mode-windows.mdx';
The **Directory** component recursively loads files from a directory, with options for file types, depth, and concurrency.
Files must be of a [supported type and size](/read-file#file-type-and-size-limits) to be loaded.
Outputs either a [`Data`](/data-types#data) or [`DataFrame`](/data-types#dataframe) object, depending on the directory contents.
## Directory parameters
<PartialParams />
| Name | Type | Description |
| ------------------ | ---------------- | -------------------------------------------------- |
| path | MessageTextInput | Input parameter. The path to the directory to load files from. Default: Current directory (`.`) |
| types | MessageTextInput | Input parameter. The file types to load. Select one or more, or leave empty to attempt to load all files. |
| depth | IntInput | Input parameter. The depth to search for files. |
| max_concurrency | IntInput | Input parameter. The maximum concurrency for loading multiple files. |
| load_hidden | BoolInput | Input parameter. If `true`, hidden files are loaded. |
| recursive | BoolInput | Input parameter. If `true`, the search is recursive. |
| silent_errors | BoolInput | Input parameter. If `true`, errors don't raise an exception. |
| use_multithreading | BoolInput | Input parameter. If `true`, multithreading is used. |