

def exists(self, name, force_check=False):
    if (not name):
        return False
    name = self._path(name)
    if (self.cache and (not force_check)):
        exists = self.cache.exists(name)
        if (exists is not None):
            return exists
    response = self.connection._make_request('HEAD', self.bucket, name)
    exists = (response.status == 200)
    if (self.cache and exists):
        self._store_in_cache(name, response)
    return exists

dataset/ETHPy150Open kylemacfarlane/django-cb-storage-s3/src/cuddlybuddly/storage/s3/storage.py S3Storage.exists/original