existsSync

abstract fun existsSync(path: Value): Boolean
abstract fun existsSync(path: Path): Boolean

Method: fs.existsSync

Tests whether the file at the specified path exists; provides the results or an error to the callback.

Return

Whether the file exists.

Parameters

path

The path to the file to test for existence.