Skip to main content

split_bucket_url

Function split_bucket_url 

Source
pub fn split_bucket_url(url: &str) -> Option<(ProviderKind, String, String)>
Expand description

Split a gs:// or s3:// URL into bucket and prefix (no leading or trailing slash, empty for the root, as object_store wants). A source id (s3://<id>@bucket) is dropped.