Function normalize_path_to_uri

Source
pub fn normalize_path_to_uri(path: &str) -> String
Expand description

Normalizes a path to URI format for consistent object store usage.

If the path is already a URI (contains “://”), returns it as-is. Otherwise, converts local paths to file:// URIs.

Supported URI schemes:

  • s3:// for AWS S3
  • gs:// or gcs:// for Google Cloud Storage
  • azure:// or abfs:// for Azure Blob Storage
  • http:// or https:// for HTTP/WebDAV
  • file:// for local files