exists

open fun exists(path: String): Boolean

Checks if specified path points to a file/directory that exists on the local filesystem. The operation will be performed on an io thread to adhere to the strict mode policy. The calling thread will be blocked until the operation is complete.

Return

true is the path points to a local file or directory.

Parameters

path

the string path to be checked.