FileExists

Determines whether a file exists

FileExists( source [, allowRealPath ] )

Returns: Boolean

Argument Description
source
any, required

a file path.

allowRealPath
object, optional

boolean that defines if relative paths are interpreted or not

Examples

var filePath = "path/to/my/file.md";
if(fileExists(filePath)) echo "it exists"

See also