spill 0.5.1

Modern torrent client
Documentation
1
2
3
4
5
6
7
//! Remove only the payload paths recorded in a destination binding.
use spill::engine::provisioning::{DestinationBinding, NamedDestination};
use std::{fs::File, io, path::Path};

pub fn remove_payload(output: &Path, binding: &DestinationBinding) -> io::Result<()> {
    NamedDestination::remove(File::open(output)?, binding)
}