uri

fun uri(path: Any): URI(source)

Resolves a file path to a URI, relative to this script's target base directory.

Evaluates the provided path object as described for file, with the exception that any URI scheme is supported, not just file: URIs.