s4cmd.py
def lookup(self, s3url):
    '''Get the s3 object with the S3 URL. Return None if not exist.'''
    try:
      return self.s3.head_object(Bucket=s3url.bucket, Key=s3url.path)
    except BotoClient.ClientError as e:
      if e.response['ResponseMetadata']['HTTPStatusCode'] == 404:
        return None
      else:
        raise e
def lookup(self, s3url):
    '''Get the s3 object with the S3 URL. Return None if not exist.'''
    try:
      return self.s3.head_object(Bucket=s3url.bucket, Key=s3url.path)
    except BotoClient.ClientError as e:
      if e.response['ResponseMetadata']['HTTPStatusCode'] == 404:
        return None
      else:
        raise e
def lookup ( self , s3url ) : try : return self . s3 . head_object ( Bucket = s3url . bucket , Key = s3url . path ) except BotoClient . ClientError as e : if e . response [ 'ResponseMetadata' ] [ 'HTTPStatusCode' ] == 404 : return None else : raise e
Get the s3 object with the S3 URL. Return None if not exist.
Get the s3 object with the S3 URL . Return None if not exist .