Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

IO#fdatasync

() -> ::Integer?
fdatasync → 0

Immediately writes to disk all data buffered in the stream, via the operating system’s: fdatasync(2), if supported, otherwise via fsync(2), if supported; otherwise raises an exception.

See also #fcntl #fileno #external_encoding #flush also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0