Tests whether an S3 (or S3-compatible) bucket, or a specific object within a bucket, exists.
s3Exists(bucket [, object, accessKeyId, secretKey, host])
→ returns boolean
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.