Returns true when an S3 bucket, or an object in it, exists.
s3Exists(bucketName [, objectName, accessKeyId, secretAccessKey, host, timeout])
→ returns boolean
lucee.s3.accesskeyid system property or environment variable.
lucee.s3.secretaccesskey system property or environment variable.
https://. Defaults to Amazon AWS.
10000bucket and object, and the secret key argument secretKey. Doesn't list timeout.
Returns true if the key is present in the bucket.
if ( s3Exists("my-bucket", "logs/today.txt") ) { }
Without an object argument, tests the bucket itself.
present = s3Exists("my-bucket");
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.