fn confine_queued_path(root: &Path, file_path: &str) -> Result<String, String>Expand description
Sanitize a queued download’s path and confine it to the download directory.
Every path the app builds for itself comes back unchanged — files on disk and
downloads rows point at these exact spellings — and sanitize_filename
is idempotent, so the already-safe name download_item_and_start passes in
is not sanitized into a second, different one.
TRACES: DR-211 | UT-205