title: Amazon S3 if object exists method issue
body: <p>I am using amazon <a href="http://docs.aws.amazon.com/AWSSDKforPHP/latest/index.html#m=AmazonS3/if_object_exists" rel="nofollow">S3 PHP SDK</a>, i need to check wither an <a href="http://docs.aws.amazon.com/AWSSDKforPHP/latest/index.html#m=AmazonS3/if_object_exists" rel="nofollow">object exists</a> or not,</p>
  
  <pre><code>$response = $s3-&gt;if_object_exists($bucket, '/albums/Carcassonne-France/');
  var_dump($response); //RESPONSE FALSE
  </code></pre>
  
  <p>But when is see using S3 Browser in firefox the specified object exists</p>
  
  <pre><code>$response = $s3-&gt;if_object_exists($bucket, '/albums/Carcassonne-France/1.jpg');
  var_dump($response); //RESPONSE TRUE
  </code></pre>
  
  <p>but this shows True,  as i have <strong>1.jpg</strong> at the above location, but i wan to check the below if the specified path exists or not.</p>
  
  <pre><code>$response = $s3-&gt;if_object_exists($bucket, '/albums/Carcassonne-France/');
  </code></pre>
  
  <p>How can i check the sepecified path exists or  not ?</p>