'Write a block of metadata to an object without requiring the caller to
create the object first. Supports fast-POST behavior semantics.
:param metadata: dictionary of metadata to be associated with the
object
:raises DiskFileError: this implementation will raise the same
errors as the `create()` method.'

def write_metadata(self, metadata):

    with self.create() as writer:
        writer._extension = '.meta'
        writer.put(metadata)
