snix_castore::import::fs

Function upload_blob

Source
async fn upload_blob<BS, P>(
    blob_service: BS,
    path: impl AsRef<Path>,
    reference_scanner: Option<&ReferenceScanner<P>>,
) -> Result<B3Digest, Error>
where BS: BlobService, P: AsRef<[u8]>,
Expand description

Uploads the file at the provided std::path::Path the the BlobService.