title: How know if bucket exists in AmazonS3 SDK 3.0
body: <p>Currently I am working in CRUD operations using Amazon S3 for 3.5 .net , I am using 3.1.5 version.</p>
  
  <p>I found this code to check if the bucket exists :</p>
  
  <pre><code>AmazonS3Client s3Client = new AmazonS3Client ();
   ///setup the client configuration
  
  S3DirectoryInfo directoryInfo = new S3DirectoryInfo(s3Client, bucketName);
                  bucketExists = directoryInfo.Exists;
  </code></pre>
  
  <p>Is there another elegant way (c# code) to check if the bucket exists?</p>