@universal_exception<EOL><INDENT>@defend_file_methods<EOL>@abc.abstractmethod<EOL>async def write(self, file, data):<DEDENT>
:py:func:`asyncio.coroutine`

Write some data to file

:param file: file-object from :py:class:`aioftp.AbstractPathIO.open`

:param data: data to write
:type data: :py:class:`bytes`