# Download Files with Python

You can download files from a <ProductShortName /> workspace to a directory on your computer, including the files' metadata. Metadata are downloaded as separate JSON files with the `meta.json` suffix.

***

## Prerequisites

<SdkInstallationSteps />

## Download Files Script Examples

Here's a code to download files, including their metadata, to a local folder called `my_files`:

<Tabs groupId="sync-async-client">
  <TabItem value="sync" label="Sync">
    ```python
    from deepset_cloud_sdk.workflows.sync_client.files import download

    download(
      api_key="<deepset API key>",
      workspace_name="<your_workspace>",
      file_dir=Path("./downloaded_files"),
    )

    ```
  </TabItem>
  <TabItem value="async" label="Async">
    ```python
    from deepset_cloud_sdk.workflows.async_client.files import download

    async def my_async_context() -> None:
    await download(
        api_key="<deepset Cloud API key>",
        workspace_name="<your_workspace>",
        file_dir=Path("./downloaded_files"),
    )
    ```
  </TabItem>
</Tabs>
