MCPcopy
hub / github.com/helm/helm / PlatformAtomicWriteFile

Function PlatformAtomicWriteFile

internal/fileutil/fileutil_unix.go:30–32  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

DownloadToMethod · 0.92

Calls 1

AtomicWriteFileFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…