tvix_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 [Path] the the BlobService.