Merge pull request #515 from angrynode/docs-overwrite

docs: AddTorrentOptions::overwrite required even with complete torrent
This commit is contained in:
Igor Katson 2025-11-23 11:19:28 +00:00 committed by GitHub
commit 2f725e3db7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -251,6 +251,9 @@ pub struct AddTorrentOptions {
pub only_files: Option<Vec<usize>>, pub only_files: Option<Vec<usize>>,
/// Allow writing on top of existing files, including when resuming a torrent. /// Allow writing on top of existing files, including when resuming a torrent.
/// You probably want to set it, however for safety it's not default. /// You probably want to set it, however for safety it's not default.
///
/// Even when all the torrent pieces have been written, `overwrite` needs to
/// be enabled in order to resume/seed the torrent.
#[serde(default)] #[serde(default)]
pub overwrite: bool, pub overwrite: bool,
/// Only list the files in the torrent without starting it. /// Only list the files in the torrent without starting it.