in remote_settings/client.py [0:0]
def attachment_name(self, index):
"""Retrieves the name of the attachment that will be attached to a newly created record.
Args:
index (int): The index of the record.
Returns:
str: The attachment name
"""
return os.path.basename(self.attachment_path(index))