AtomicWrite writes data to path atomically. Delegates to localfileio.AtomicWrite.
(path string, data []byte, perm os.FileMode)
| 13 | // AtomicWrite writes data to path atomically. |
| 14 | // Delegates to localfileio.AtomicWrite. |
| 15 | func AtomicWrite(path string, data []byte, perm os.FileMode) error { |
| 16 | return localfileio.AtomicWrite(path, data, perm) |
| 17 | } |
| 18 | |
| 19 | // AtomicWriteFromReader atomically copies reader contents into path. |
| 20 | // Delegates to localfileio.AtomicWriteFromReader. |