A torrent of several files can be neither played nor reaped #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in a code audit on 2026-10-09.
Torrents::fetch(src/torrent.rs:117-118) records the torrent's output folder joined with its name. For a torrent of several files that is a directory./media/{id}cannot serve one, and the reaper'sremove_file(src/retention.rs:101-105) fails on it, warns "could not delete" on every pass and frees nothing, so those bytes count against the quota for good. Torrents are on in production.Fixed in
ebecc12: download::remove deletes a file or a torrent's folder (reaper and Delete), counting a folder by its recorded size; download::playable serves the largest file in a folder, the episode. Test: a_torrent_folder_plays_its_largest_file_and_deletes_whole. Deployed as 0.10.3-dev on 2026-10-09.