API Reference › Fs › Fs.exists
method

Fs.exists

Fs.exists(p) -> bool

Returns whether anything (file or directory) exists at the path. A cheap existence check before reading or writing.

Parameters

pthe path to test

Example

program Exists {
  entry {
    if Fs.exists("settings.ini") { print(1) } else { print(0) }
  }
}
← All symbols