Closed
Description
This issue was originally filed by [email protected]
Hi,
I would like to have knowledge and control about whether file data and file metadata is sent to disk or not.
Like fsync and fdatasync on Linux.
This seems quite important to me for server systems.
If an operating system or filesystem does not support that control, than Dart should just ignore the fsync and fdatasync option.
Java NIO offers such control in the form of SYNC and DSYNC.
http://docs.oracle.com/javase/tutorial/essential/io/file.html
http://docs.oracle.com/javase/7/docs/api/java/nio/file/StandardOpenOption.html
And .net offers a similar control as well:
http://msdn.microsoft.com/en-us/library/2bw4h516%28v=VS.90%29.aspx
Best regards