diff --git a/crates/librqbit/src/session.rs b/crates/librqbit/src/session.rs index a8305da..c96137e 100644 --- a/crates/librqbit/src/session.rs +++ b/crates/librqbit/src/session.rs @@ -1141,7 +1141,7 @@ impl Session { let lengths = Lengths::from_torrent(&info)?; let file_infos = info - .iter_file_details(&lengths)? + .iter_file_details_ext(&lengths)? .map(|fd| { Ok::<_, anyhow::Error>(FileInfo { relative_filename: fd.filename.to_pathbuf()?, diff --git a/crates/librqbit/src/storage/filesystem/fs.rs b/crates/librqbit/src/storage/filesystem/fs.rs index 74ac596..e9de475 100644 --- a/crates/librqbit/src/storage/filesystem/fs.rs +++ b/crates/librqbit/src/storage/filesystem/fs.rs @@ -151,7 +151,7 @@ impl TorrentStorage for FilesystemStorage { fn init(&mut self, meta: &ManagedTorrentShared) -> anyhow::Result<()> { let mut files = Vec::::new(); - for file_details in meta.info.iter_file_details(&meta.lengths)? { + for file_details in meta.info.iter_file_details_ext(&meta.lengths)? { let mut full_path = self.output_folder.clone(); let relative_path = file_details .filename diff --git a/crates/librqbit_core/src/torrent_metainfo.rs b/crates/librqbit_core/src/torrent_metainfo.rs index 6dfd5cc..d4b7445 100644 --- a/crates/librqbit_core/src/torrent_metainfo.rs +++ b/crates/librqbit_core/src/torrent_metainfo.rs @@ -240,7 +240,7 @@ impl> TorrentMetaV1Info { // NOTE: lenghts MUST be construced with Lenghts::from_torrent, otherwise // the yielded results will be garbage. - pub fn iter_file_details<'a>( + pub fn iter_file_details_ext<'a>( &'a self, lengths: &'a Lengths, ) -> anyhow::Result> + 'a> {