MCPcopy Index your code
hub / github.com/aws/aws-cli / _main

Method _main

awscli/s3transfer/download.py:762–770  ·  view source on GitHub ↗

Pulls off an io queue to write contents to a file :param fileobj: The file handle to write content to :param data: The data to write :param offset: The offset to write the data to.

(self, fileobj, data, offset)

Source from the content-addressed store, hash-verified

760
761class IOWriteTask(Task):
762 def _main(self, fileobj, data, offset):
763 """Pulls off an io queue to write contents to a file
764
765 :param fileobj: The file handle to write content to
766 :param data: The data to write
767 :param offset: The offset to write the data to.
768 """
769 fileobj.seek(offset)
770 fileobj.write(data)
771
772
773class IOStreamingWriteTask(Task):

Callers

nothing calls this directly

Calls 2

seekMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected