exists

abstract fun exists(path: Value, callback: Value)
abstract fun exists(path: Path, callback: (Boolean) -> Unit)

Method: fs.exists

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

Parameters

path

The path to the file to test for existence.

callback

The callback to provide the results or an error.