# FileSystemBlobLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/file_system/FileSystemBlobLoader)

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

## Signature

```python
FileSystemBlobLoader(
    self,
    path: Union[str, Path],
    *,
    glob: str = '**/[!.]*',
    exclude: Sequence[str] = (),
    suffixes: Optional[Sequence[str]] = None,
    show_progress: bool = False,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `path` | `Union[str, Path]` | Yes | 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` | No | Glob pattern relative to the specified path   by default set to pick up all non-hidden files (default: `'**/[!.]*'`) |
| `exclude` | `Sequence[str]` | No | patterns to exclude from results, use glob syntax (default: `()`) |
| `suffixes` | `Optional[Sequence[str]]` | No | 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" (default: `None`) |
| `show_progress` | `bool` | No | 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. (default: `False`) |

## Extends

- `BlobLoader`

## Constructors

```python
__init__(
    self,
    path: Union[str, Path],
    *,
    glob: str = '**/[!.]*',
    exclude: Sequence[str] = (),
    suffixes: Optional[Sequence[str]] = None,
    show_progress: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `path` | `Union[str, Path]` |
| `glob` | `str` |
| `exclude` | `Sequence[str]` |
| `suffixes` | `Optional[Sequence[str]]` |
| `show_progress` | `bool` |


## Properties

- `path`
- `glob`
- `suffixes`
- `show_progress`
- `exclude`

## Methods

- [`yield_blobs()`](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/file_system/FileSystemBlobLoader/yield_blobs)
- [`count_matching_files()`](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/file_system/FileSystemBlobLoader/count_matching_files)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/blob_loaders/file_system.py#L41)