snakemake/remote/S3.py
def exists_in_bucket(self, bucket_name, key):
        """Returns whether the key exists in the bucket

        Args:
            bucket_name: the name of the S3 bucket to use (bucket name only, not ARN)
            key: the key of the object to delete from the bucket

        Returns:
            True | False
        """
        assert bucket_name, "bucket_name must be specified"
        assert key, "Key must be specified"

        try:
            self.s3.Object(bucket_name, key).load()
        except botocore.exceptions.ClientError as e:
            if e.response["Error"]["Code"] == "404":
                return False
            else:
                raise
        return True
Returns whether the key exists in the bucket

        Args:
            bucket_name: the name of the S3 bucket to use (bucket name only, not ARN)
            key: the key of the object to delete from the bucket

        Returns:
            True | False
        
Returns whether the key exists in the bucket
Returns whether the key exists in the bucket
def exists_in_bucket(self, bucket_name, key):
        assert bucket_name, "bucket_name must be specified"
        assert key, "Key must be specified"
        try:
            self.s3.Object(bucket_name, key).load()
        except botocore.exceptions.ClientError as e:
            if e.response["Error"]["Code"] == "404":
                return False
            else:
                raise
        return True
def exists_in_bucket ( self , bucket_name , key ) : assert bucket_name , "bucket_name must be specified" assert key , "Key must be specified" try : self . s3 . Object ( bucket_name , key ) . load ( ) except botocore . exceptions . ClientError as e : if e . response [ "Error" ] [ "Code" ] == "404" : return False else : raise return True
Returns whether the key exists in the bucket
Returns whether the key exists in the bucket
"""Returns whether the key exists in the bucket

        Args:
            bucket_name: the name of the S3 bucket to use (bucket name only, not ARN)
            key: the key of the object to delete from the bucket

        Returns:
            True | False
        """
True | False
True | False
self
bucket_name
the name of the S3 bucket to use (bucket name only, not ARN)
the name of the S3 bucket to use ( bucket name only not ARN )
key
the key of the object to delete from the bucket
the key of the object to delete from the bucket