Skip to main content

path_from_uri

Creates a Path from a file URI.

fun path_from_uri(_ uri: URI) -> (Path?)

Parameters

_ uri: URI

A URI.

Returns

Path?

The Path created from the given URI, or nil if the URI isn't convertible to a filesystem path.