File.sync

Instructs the OS to flush it's internal buffers to the disk device.

NOTE: due to OS and hardware design, data flushed cannot be guaranteed to be actually on disk-platters. Actual durability of data depends on write-caches, barriers, presence of battery-backup, filesystem and OS-support.

  1. void sync()
  2. void sync()
    class File
    version(Posix)
    void
    sync
    ()

Meta