Skip to main content

parse_uri_or_path

Function parse_uri_or_path 

Source
pub fn parse_uri_or_path(uri_or_path: &str) -> VortexResult<Url>
Expand description

Parse a URI-or-path string into a Url:

  • full URLs (s3://..., file:///...) are used as-is,
  • bare (relative or absolute) file paths are made absolute, have ./.. components normalized, and become file:// URLs. On targets without a filesystem (e.g. wasm32-unknown-unknown), bare paths are rejected instead.

Glob characters are preserved, so glob patterns like /data/*.vortex parse as expected.