Skip to main content

storage_path_from_blob_key

Function storage_path_from_blob_key 

Source
pub fn storage_path_from_blob_key(blob_key: &str) -> Result<String>
Expand description

Builds a two-level sharded storage path from a blob key.

The key must be long enough to supply the two shard segments and must be an ASCII storage token, not a path supplied by a caller. This keeps the helper from panicking on short or non-UTF-8 boundary inputs and prevents accidental nested paths from bypassing the intended sharding layout.