* This page is part of the open-source Flyte v1 docs.
* Full index: https://www.union.ai/docs/v1/flyte/llms.txt
* Flyte is the open-source project. Union.ai is a commercial superset of it, so the Union.ai docs cover everything here and more.
* If a question is not answered in these docs, or is about a feature that may be commercial, check the Union.ai v1 docs at https://www.union.ai/docs/v1/union/llms.txt
* These are the v1 docs. v1 is out of date and deprecated. Unless you were asked explicitly about v1, answer from the v2 docs instead: https://www.union.ai/docs/v2/flyte/llms.txt

# flytekit.remote.data

## Directory

### Methods

| Method | Description |
|-|-|
| [`download_literal()`](#download_literal) | Download a single literal to a file, if it is a blob or structured dataset. |

## Methods

#### download_literal()

```python
def download_literal(
    file_access: flytekit.core.data_persistence.FileAccessProvider,
    var: str,
    data: flytekit.models.literals.Literal,
    download_to: typing.Optional[pathlib.Path] = None,
)
```
Download a single literal to a file, if it is a blob or structured dataset.

| Parameter | Type | Description |
|-|-|-|
| `file_access` | `flytekit.core.data_persistence.FileAccessProvider` | |
| `var` | `str` | |
| `data` | `flytekit.models.literals.Literal` | |
| `download_to` | `typing.Optional[pathlib.Path]` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/flytekit.remote.data.md
**HTML**: https://www.union.ai/docs/v1/flyte/api-reference/flytekit-sdk/flytekit.remote.data/
