exists

abstract fun exists(path: Path): Boolean(source)

Returns true if path identifies an object on this file system.

Throws

IOException

if path cannot be accessed due to a connectivity problem, permissions problem, or other issue.