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()
    class File
    version(Win32)
    void
    sync
    ()
  2. void sync()

Meta