fileExists

Determines whether a file exists

fileExists(filePath) → returns boolean

fileExists Argument Reference

filePath string
Required

Examples sample code invoking the fileExists function

var myFile = "/path/to/the/file.jpg";
if(fileExists(myFile)) {
	writeOutput(myFile & 'exists!');
}

Fork me on GitHub