> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Download data from volume

> Download files from a volume to your local filesystem with the E2B SDK.

You can download data from a volume using the `readFile()` / `read_file()` method.

<CodeGroup>
  ```js JavaScript & TypeScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  import fs from 'fs'
  import { Volume } from 'e2b'

  const volume = await Volume.create('my-volume')

  // Read file from volume
  const content = await volume.readFile('/path/in/volume')
  // Write file to local filesystem
  fs.writeFileSync('/local/path', content)
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  from e2b import Volume

  volume = Volume.create('my-volume')

  # Read file from volume
  content = volume.read_file('/path/in/volume')
  # Write file to local filesystem
  with open('/local/path', 'w') as file:
      file.write(content)
  ```
</CodeGroup>
