FileExists

Determines whether a file exists

Returns: boolean

Usage

FileExists( source [, allowRealPath ] )

Arguments

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"