'Provide the metadata for an object as a dictionary.
:returns: object\'s metadata dictionary'

def get_metadata(self):

    if (self._metadata is None):
        raise DiskFileNotOpen()
    return self._metadata
