MCPcopy Index your code
hub / github.com/pyload/pyload / flushFile

Method flushFile

module/network/HTTPChunk.py:358–362  ·  view source on GitHub ↗

flush and close file

(self)

Source from the content-addressed store, hash-verified

356 self.size = range[1] - range[0]
357
358 def flushFile(self):
359 """ flush and close file """
360 self.fp.flush()
361 os.fsync(self.fp.fileno()) # make sure everything was written to disk
362 self.fp.close() # needs to be closed, or merging chunks will fail
363
364 def close(self):
365 """ closes everything, unusable after this """

Callers 1

_downloadMethod · 0.80

Calls 3

filenoMethod · 0.80
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected