URI
- vibe_core.uri.is_local(url)
Checks if uri refers to a local file.
- Parameters:
url (
str
) – The URL to check.- Returns:
True if the URL refers to a local file, False otherwise.
- vibe_core.uri.local_uri_to_path(uri)
Maps ‘file://’ urls to paths.
If the input is already a path, leave it as is.
- Parameters:
uri (
str
) – The URI to convert.- Raises:
ValueError – If the URI is not local.
- Returns:
str
– The path corresponding to the URI.
- vibe_core.uri.uri_to_filename(uri)
Parses the filename from an URI.
- Parameters:
uri (
str
) – The URI to convert.- Returns:
str
– The filename associated with the URI.