MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / _copy_file

Method _copy_file

thirdparty/bottle/bottle.py:3167–3173  ·  view source on GitHub ↗
(self, fp, chunk_size=2 ** 16)

Source from the content-addressed store, hash-verified

3165 return fname[:255] or 'empty'
3166
3167 def _copy_file(self, fp, chunk_size=2 ** 16):
3168 read, write, offset = self.file.read, fp.write, self.file.tell()
3169 while 1:
3170 buf = read(chunk_size)
3171 if not buf: break
3172 write(buf)
3173 self.file.seek(offset)
3174
3175 def save(self, destination, overwrite=False, chunk_size=2 ** 16):
3176 """ Save file to disk or copy its content to an open file(-like) object.

Callers 1

saveMethod · 0.95

Calls 3

writeFunction · 0.85
tellMethod · 0.80
seekMethod · 0.45

Tested by

no test coverage detected