exists

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

Returns true if there is a filesystem entity a path points to, otherwise returns false.

Parameters

path

the path that should be checked for existence.

Throws

when the attempt to check the existence of the path failed.