Determines whether a file exists
fileExists(filePath)
→ returns boolean
var myFile = "/path/to/the/file.jpg";
if(fileExists(expandPath(myFile))) {
writeOutput(myFile & 'exists!');
}
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.