fileExists
Determines whether a file exists
fileExists(filePath) → returns boolean
Argument Reference
filePath string Required
A absolute file system path string.
Examples Sample code invoking the fileExists function
var myFile = "/path/to/the/file.jpg";
if(fileExists(expandPath(myFile))) {
writeOutput(myFile & 'exists!');
}
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/fileexists