pub async fn encode(path: &Path, hash_hex: &str) -> Result<EncodedFileInfo>Expand description
Encode a file by its path using bao encoding. Returns bao hash, bytes read, bytes written, and the offset from which the bytes were written.
pub async fn encode(path: &Path, hash_hex: &str) -> Result<EncodedFileInfo>Encode a file by its path using bao encoding. Returns bao hash, bytes read, bytes written, and the offset from which the bytes were written.