exists2

fun File.exists2(): Boolean(source)

Tests whether the file or directory denoted by this abstract pathname exists.

Return

true if and only if the file or directory denoted by this abstract pathname exists; false otherwise.

Throws

If the filesystem threw a security exception.

UnsupportedOperationException

On Kotlin/JS-Browser.