MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _sync_close

Function _sync_close

tools/python-3.11.9-amd64/Lib/mailbox.py:2133–2136  ·  view source on GitHub ↗

Close file f, ensuring all changes are physically on disk.

(f)

Source from the content-addressed store, hash-verified

2131 os.fsync(f.fileno())
2132
2133def _sync_close(f):
2134 """Close file f, ensuring all changes are physically on disk."""
2135 _sync_flush(f)
2136 f.close()
2137
2138
2139class Error(Exception):

Callers 6

addMethod · 0.85
flushMethod · 0.85
addMethod · 0.85
__setitem__Method · 0.85
unlockMethod · 0.85
set_sequencesMethod · 0.85

Calls 2

_sync_flushFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected