Skip to content

How to seed pre-downloaded torrent? #509

@angrynode

Description

@angrynode

I was wondering on the desktop version, but now i'm facing the problem using librqbit directly.

When i do:

    let managed_torrent_handle = session.add_torrent(
       AddTorrent::from_local_filename("tests/hello/hello.torrent").unwrap(),
       Some(AddTorrentOptions {
           output_folder: Some("tests/hello/".to_string()),
           ..Default::default()
       })
    ).await.unwrap().into_handle().unwrap();

I get:

called `Result::unwrap()` on an `Err` value: error creating a new file (because allow_overwrite = false) "tests/hello/hello"

I tried setting paused: true with the same result.

There are several use-cases involved, one of them is migrating from another torrent client. In this specific case however, i'd like to start seeding in library tests with various settings to check that everything works fine under different scenarios (PEX, IPv4 tracker, IPv6 tracker, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions