# Aws S3object exists? method

**URL:** <https://www.ruby-forum.com/t/aws-s3object-exists-method/193611>\
**Category:** Ruby\
**Created:** [August 20, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/aws-s3object-exists-method/193611 "2010-08-20T14:00:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brijesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Post date:** [August 20, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/aws-s3object-exists-method/193611/1 "2010-08-20T14:00:34Z")

</div>

Hi All

through S3Obejct , I am trying to check whether file is exists or not on  
Amazone.

When I try to check with .mp3 file , it always return true even if it is  
not exists there.

AWS::S3::S3Object.exists?(“files/barebear.mp3”,"")  
=\> true

> > AWS::S3::S3Object.find(“files/barebear.mp3”,"")  
> > AWS::S3::NoSuchKey: No such key `recordings/barebear.mp3' from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/object.rb:177:in`find’  
> > from (irb):16
> 
> >

In other files it return me proper result.

Gem Version:  
aws-s3 (0.6.2, 0.5.1)

Can anyone help me what is the issue.

Thanks  
Brijesh S.
