Version: v0.8.1 - Beta.  We welcome contributors & feedback.

File.exists

$path.exists() -> boolean

Description

Returns true if the file or directory exists. Otherwise, return false.

$dataFile = file'files:/data.txt'
if $dataFile.exists() {
    // ...
}

See Also