toUrl

fun File.toUrl(isDirectory: Boolean): AbsoluteUrl

Creates a URL pointing to this File which must denote an absolute path.

Parameters

isDirectory

If the URL must end with a trailing slash because it points to a directory.


fun Uri.toUrl(): Url?
fun URL.toUrl(): Url?
fun URI.toUrl(): Url?