PlatformAtomicWriteFile atomically writes a file to disk. On non-Windows platforms we don't need extra coordination, so this simply delegates to AtomicWriteFile to preserve the existing overwrite behaviour.
(filename string, reader io.Reader, mode os.FileMode)
| 28 | // On non-Windows platforms we don't need extra coordination, so this simply |
| 29 | // delegates to AtomicWriteFile to preserve the existing overwrite behaviour. |
| 30 | func PlatformAtomicWriteFile(filename string, reader io.Reader, mode os.FileMode) error { |
| 31 | return AtomicWriteFile(filename, reader, mode) |
| 32 | } |
searching dependent graphs…