View Source Lexical.Document.Path (lexical_shared v0.5.0)
A collection of functions dealing with converting filesystem paths to URIs and back
Link to this section Summary
Functions
Given a uri or a path, either return the path unmodified or converts the uri to a path
Given a uri or a path, either return the uri unmodified or converts the path to a uri
Returns path from URI in a way that handles windows file:///c%3A/... URLs correctly
Converts a path into a URI
Link to this section Types
@type uri_or_path() :: Lexical.uri() | Lexical.path()
Link to this section Functions
@spec ensure_path(uri_or_path()) :: Lexical.path()
Given a uri or a path, either return the path unmodified or converts the uri to a path
@spec ensure_uri(uri_or_path()) :: Lexical.uri()
Given a uri or a path, either return the uri unmodified or converts the path to a uri
Returns path from URI in a way that handles windows file:///c%3A/... URLs correctly
Converts a path into a URI