Skip to main content

object_path

Function object_path 

Source
pub fn object_path(key: &str) -> Path
Expand description

The object_store path for a key as the service stores it.

Path::from percent-encodes characters it considers unsafe, % among them, which is right for a name being made up and wrong for one that already exists: a key 100%.csv.gz became 100%25.csv.gz and was then encoded again on the way out, so the request asked for an object that is not there. A key from a listing or a URL is taken as it is, unless it cannot be a path at all.