On Thu, 21 Jul 2016 11:17:18 -0700 (PDT)
Manlio Perillo <manlio.peri...@gmail.com> wrote:

> What is the reason why ioutil.WriteFile does not call File.Sync?

I'd say that's because to inhibit this behaviour when needed you'd need
to implement ioutil.WriteFileNoSync() or have an option flag as an
argument (remember CreateFile() of Win32 API?).
The way it's implemented, it does exactly one task.
A version calling Sync would be like 10 lines of code at most,
I imagine.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to