AWS Developer Forums: Checking a bucket exists ...
Just a quick update that as of the latest release of the AWS SDK for Java (1.0.3), the Amazon S3 client class now contains a new "doesBucketExist" method.The new method tells you whether a bucket with the specified name exists or not (regardless of who owns it). If you still need to know if your account owns the bucket or not, you could call listBuckets() or of course use the code I mentioned earlier in this thread.
Read full article from AWS Developer Forums: Checking a bucket exists ...
No comments:
Post a Comment