MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / write

Method write

astrbot/api/web.py:141–147  ·  view source on GitHub ↗

Write bytes to the uploaded file object. Args: data: Bytes to write.

(self, data: bytes)

Source from the content-addressed store, hash-verified

139 return await self._upload_file.read(size)
140
141 async def write(self, data: bytes) -> None:
142 """Write bytes to the uploaded file object.
143
144 Args:
145 data: Bytes to write.
146 """
147 await self._upload_file.write(data)
148
149 async def seek(self, offset: int) -> None:
150 """Move the uploaded file cursor.

Callers 14

saveMethod · 0.45
saveMethod · 0.45
upload_completeMethod · 0.45
saveMethod · 0.45
encodeMethod · 0.45
_write_local_test_pluginFunction · 0.45
_write_requirementsFunction · 0.45
fake_downloadFunction · 0.45
fake_pip_mainFunction · 0.45
saveMethod · 0.45
failing_dumpMethod · 0.45
saveMethod · 0.45

Calls

no outgoing calls

Tested by 9

encodeMethod · 0.36
_write_local_test_pluginFunction · 0.36
_write_requirementsFunction · 0.36
fake_downloadFunction · 0.36
fake_pip_mainFunction · 0.36
saveMethod · 0.36
failing_dumpMethod · 0.36
saveMethod · 0.36
_download_fileFunction · 0.36