fileExists

Determines whether a file exists

fileExists(path) → returns boolean

fileExists Argument Reference

path string
Required

Examples sample code invoking the fileExists function


Checks if file at the give path exists.

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

Fork me on GitHub