File.fileExists()

Signature

boolean fileExists (String path)

Domain

ACTION, CONDITION, QUERY

Description

Tests whether the file or directory denoted by the specified path exists.

Parameters

NameTypeDescription
pathStringThe target file or directory.

Returns

TypeDescription
booleanReturns true if the specified file/directory exists; otherwise, returns false.

Cautions

none