# `Threadline.Storage.Local`
[🔗](https://github.com/szTheory/threadline/blob/v1.2.0/lib/threadline/storage/local.ex#L1)

Stores Threadline exports on the local filesystem.

This is the default `Threadline.Storage` adapter. It is intended for a
single-node deployment whose filesystem is persistent and readable by the
web process. Select it explicitly when needed:

    config :threadline, storage_adapter: Threadline.Storage.Local

Files are stored under `priv/threadline_exports`. `put/2` writes the supplied
binary content and accepts an optional `:file_id`; otherwise it generates a
CSV identifier. As an adapter-specific convenience, when the supplied binary
names an existing regular file, Local copies that file instead of storing the
path text. Other adapters are required to accept binary content only.

`path/1` returns an expanded local path for export delivery. `download_url/2`
returns `{:error, :not_supported}` because this adapter does not generate
URLs. Filesystem failures are returned as `{:error, reason}` values from
Elixir's `File` module, while deleting a missing file is successful.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
