fromUri

fun fromUri(uri: Uri): Path

Create a new path from a URI.

Return

the new path

Parameters

uri

the URI

Throws

if the URI doesn't have a scheme, or the path component of the URI is empty or relative.