# LocalFileStore

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/storage/file_system/LocalFileStore)

`BaseStore` interface that works on the local file system.

## Signature

```python
LocalFileStore(
    self,
    root_path: str | Path,
    *,
    chmod_file: int | None = None,
    chmod_dir: int | None = None,
    update_atime: bool = False,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `root_path` | `str \| Path` | Yes | The root path of the file store. All keys are interpreted as paths relative to this root. |
| `chmod_file` | `int \| None` | No | Sets permissions for newly created files, overriding the current `umask` if needed. (default: `None`) |
| `chmod_dir` | `int \| None` | No | Sets permissions for newly created dirs, overriding the current `umask` if needed. (default: `None`) |
| `update_atime` | `bool` | No | Updates the filesystem access time (but not the modified time) when a file is read. This allows MRU/LRU cache policies to be implemented for filesystems where access time updates are disabled. (default: `False`) |

## Extends

- `ByteStore`

## Constructors

```python
__init__(
    self,
    root_path: str | Path,
    *,
    chmod_file: int | None = None,
    chmod_dir: int | None = None,
    update_atime: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `root_path` | `str \| Path` |
| `chmod_file` | `int \| None` |
| `chmod_dir` | `int \| None` |
| `update_atime` | `bool` |


## Properties

- `root_path`
- `chmod_file`
- `chmod_dir`
- `update_atime`

## Methods

- [`mget()`](https://reference.langchain.com/python/langchain-classic/storage/file_system/LocalFileStore/mget)
- [`mset()`](https://reference.langchain.com/python/langchain-classic/storage/file_system/LocalFileStore/mset)
- [`mdelete()`](https://reference.langchain.com/python/langchain-classic/storage/file_system/LocalFileStore/mdelete)
- [`yield_keys()`](https://reference.langchain.com/python/langchain-classic/storage/file_system/LocalFileStore/yield_keys)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/langchain/langchain_classic/storage/file_system.py#L12)