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() {
// ...
}
Returns true if the file or directory exists. Otherwise, return false.
$dataFile = file'files:/data.txt'
if $dataFile.exists() {
// ...
}