Back to Langflow

Directory

docs/docs/Components/directory.mdx

1.10.0.dev201.7 KB
Original Source

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 to be loaded.

Outputs either a JSON or Table object, depending on the directory contents.

Directory parameters

<PartialParams />
NameTypeDescription
pathMessageTextInputInput parameter. The path to the directory to load files from. Default: Current directory (.)
typesMessageTextInputInput parameter. The file types to load. Select one or more, or leave empty to attempt to load all files.
depthIntInputInput parameter. The depth to search for files.
max_concurrencyIntInputInput parameter. The maximum concurrency for loading multiple files.
load_hiddenBoolInputInput parameter. If true, hidden files are loaded.
recursiveBoolInputInput parameter. If true, the search is recursive.
silent_errorsBoolInputInput parameter. If true, errors don't raise an exception.
use_multithreadingBoolInputInput parameter. If true, multithreading is used.