Function “existsFile”

function existsFile(path)

Checks whether a certain file exists

Parameters

NameTypeDescription
pathstringPath or URL of the file to look up

Return Value

Returns true iff the given file exists

Example

if (existsFile("/path/to/file.txt"))
	print("The file exists!")