isFile

open fun isFile(path: String): Boolean

Checks if specified path points to a file 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.

Parameters

path

the string path to be checked.