From d9580f72a92601fd09e9b4a8f9b9e507a5b40f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 13 Oct 2025 18:29:19 -0700 Subject: [PATCH] runner: allow subdirectories in --folder --- CHANGELOG.md | 5 +++++ src/pipecat/runner/run.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 797ca06ab..424d6a420 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- The runner `--folder` argument now supports downloading files from + subdirectories. + ### Fixed - Fixed an issue where `RimeHttpTTSService` and `PiperTTSService` could generate diff --git a/src/pipecat/runner/run.py b/src/pipecat/runner/run.py index fd1a8a952..53b39f4e3 100644 --- a/src/pipecat/runner/run.py +++ b/src/pipecat/runner/run.py @@ -217,7 +217,7 @@ def _setup_webrtc_routes( """Redirect root requests to client interface.""" return RedirectResponse(url="/client/") - @app.get("/files/{filename}") + @app.get("/files/{filename:path}") async def download_file(filename: str): """Handle file downloads.""" if not folder: