core-ktx / androidx.os / java.io.File

Extensions for java.io.File

toUri

fun File.toUri(): Uri

Creates a Uri from the given file.