lib/s3/object.rb
def exists?
      retrieve
      true
    rescue Error::NoSuchKey
      false
    end
# Retrieves the object from the server, returns true if the object
# exists or false otherwise. Uses #retrieve method, but catches
# S3::Error::NoSuchKey exception and returns false when it happens
Retrieves the object from the server, returns true if the object
exists or false otherwise. Uses #retrieve method, but catches
S3::Error::NoSuchKey exception and returns false when it happens
Retrieves the object from the server returns true if the object exists or false otherwise . Uses #retrieve method but catches S3 :: Error :: NoSuchKey exception and returns false when it happens
def exists?
      retrieve
      true
    rescue Error::NoSuchKey
      false
    end
def exists? retrieve true rescue Error :: NoSuchKey false end
Retrieves the object from the server, returns true if the object
exists or false otherwise.
Retrieves the object from the server returns true if the object exists or false otherwise .