FileExists
Method Signature
FileExists(source=[string], allowRealPath=[boolean])Arguments
Argument
Type
Required
Description
Default
Examples
Checks if file at the given path exists.
var myFile = "/path/to/the/file.jpg";
if( fileExists( expandPath( myFile ) ) ) {
writeOutput( myFile & "exists!" );
}
Additional Examples
var filePath = "path/to/my/file.md";
if( fileExists( filePath ) ) echo;
"it exists";
Related
Last updated
Was this helpful?
