ID EN
OS

fsync

Python 3.11

Force write of file with filedescriptor fd to disk. On Unix, this calls the native fsync() function; on Windows, the MS _commit() function.

Syntax

PYTHON
os.fsync(fd)

See Also

file object Availability