Determines whether a file exists
fileExists(filePath)
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
filePath | string | Yes | A absolute file system path string. |
var myFile = "/path/to/the/file.jpg";
if(fileExists(expandPath(myFile))) {
writeOutput(myFile & 'exists!');
}