Function “existsFile”
function existsFile(path)
Checks whether a certain file exists
Parameters
| Name | Type | Description |
|---|---|---|
path | string | Path 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!")