pub fn normalize_path_to_uri(path: &str) -> StringExpand 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 with proper cross-platform handling.
Supported URI schemes:
s3://for AWS S3gs://orgcs://for Google Cloud Storageaz://orabfs://for Azure Blob Storagehttp://orhttps://for HTTP/WebDAVfile://for local files
§Cross-platform Path Handling
- Unix absolute paths:
/path/to/file→file:///path/to/file - Windows drive paths:
C:\path\to\file→file:///C:/path/to/file - Windows UNC paths:
\\server\share\file→file://server/share/file - Relative paths: converted to absolute using current directory