1 2 3 4 5 6 7 8 9 10 11 12
use std::fs; use std::path::Path; use ssri::Integrity; use crate::content::path; use crate::errors::{Internal, Result}; pub fn rm(cache: &Path, sri: &Integrity) -> Result<()> { fs::remove_file(path::content_path(cache, sri)).to_internal()?; Ok(()) }