| Name | Type | Description |
|---|---|---|
path* | Union[str, Path] | Path to directory to load from or path to file to load. If a path to a file is provided, glob/exclude/suffixes are ignored. |
glob | str | Default: '**/[!.]*'Glob pattern relative to the specified path by default set to pick up all non-hidden files |
exclude | Sequence[str] | Default: () |
suffixes | Optional[Sequence[str]] | Default: None |
show_progress | bool | Default: False |
Load blobs in the local file system.
Example:
.. code-block:: python
from langchain_community.document_loaders.blob_loaders import FileSystemBlobLoader
loader = FileSystemBlobLoader("/path/to/directory")
for blob in loader.yield_blobs():
print(blob) # noqa: T201
patterns to exclude from results, use glob syntax
Provide to keep only files with these suffixes Useful when wanting to keep files with different suffixes Suffixes must include the dot, e.g. ".txt"
If true, will show a progress bar as the files are loaded. This forces an iteration through all matching files to count them prior to loading them.