def put_object_from_file(self, filepath: Union[(str, pathlib.Path)]) -> str:
    'Store a new object with contents of the file located at `filepath` on this file system.\n\n        :param filepath: absolute path of file whose contents to copy to the repository.\n        :return: the generated fully qualified identifier for the object within the repository.\n        :raises TypeError: if the handle is not a byte stream.\n        '
    with open(filepath, mode='rb') as handle:
        return self.put_object_from_filelike(handle)
Store a new object with contents of the file located at `filepath` on this file system.

:param filepath: absolute path of file whose contents to copy to the repository.
:return: the generated fully qualified identifier for the object within the repository.
:raises TypeError: if the handle is not a byte stream.
def put_object_from_file(self, filepath: Union[(str, pathlib.Path)]) -> str:
    'Store a new object with contents of the file located at `filepath` on this file system.\n\n        :param filepath: absolute path of file whose contents to copy to the repository.\n        :return: the generated fully qualified identifier for the object within the repository.\n        :raises TypeError: if the handle is not a byte stream.\n        '
    with open(filepath, mode='rb') as handle:
        return self.put_object_from_filelike(handle)