---
title: "Download a directory as a tar.zst archive"
method: GET
path: "/fs/download_dir_zstd"
---

# Download a directory as a tar.zst archive

`GET /fs/download_dir_zstd`

Returns a tar.zst (tar archive compressed with zstd) file containing the contents
of the specified directory. Zstd offers significantly faster compression and
decompression compared to zip while achieving better compression ratios.

## Query parameters

- `path` string, required
- `compression_level` 'fastest' | 'default' | 'better' | 'best'

## Response `200`

Tar.zst archive of the requested directory

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-01-16** `32c75432dbdc` — 1 info
  - endpoint added
- **2025-06-27** `f980a92ab23f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kernel/apis/kernel-images-api/changes/fs/download_dir_zstd/get.md)

---

[API](https://skmtc.dev/kernel/apis/kernel-images-api.md) · [All operations](https://skmtc.dev/kernel/apis/kernel-images-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kernel/kernel-images-api/revisions/7a641fa15a85/schema)
