Skip to content

Make frontend-owned output and storage policy explicit #241

Description

@artrixdotdev

Problem

Engine::new defaults the output path to std::env::current_dir(), which is application policy inside the library. A TUI should explicitly own where downloads go, how defaults are chosen, and how storage configuration is presented to users.

Relevant code:

  • crates/libtortillas/src/engine/mod.rs:171
  • crates/libtortillas/src/torrent/storage.rs

Dependency

Blocked by #222 because storage/output policy should be part of the frontend facade contract.

Acceptance criteria

  • Library defaults are safe and clearly documented.
  • Frontends can explicitly configure output path and storage strategy through stable API.
  • Relative path behavior is documented and tested.
  • Invalid output/storage combinations return typed errors, not panics.
  • This issue coordinates with Harden torrent output path sanitization #234 for path safety.

Metadata

Metadata

Assignees

No one assigned

    Labels

    libtortillasChanges in the libtortillas cratemed prioMedium PriorityrefactorNeither fixes a bug nor adds a featurerustPull requests that update rust codetui-foundationWork needed before building the Tortillas TUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions