MCPcopy Index your code
hub / github.com/larksuite/cli / AtomicWrite

Function AtomicWrite

internal/validate/atomicwrite.go:15–17  ·  view source on GitHub ↗

AtomicWrite writes data to path atomically. Delegates to localfileio.AtomicWrite.

(path string, data []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

13// AtomicWrite writes data to path atomically.
14// Delegates to localfileio.AtomicWrite.
15func 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.

Callers 15

saveCacheMetaFunction · 0.92
saveCachedMergedFunction · 0.92
WriteStateFunction · 0.92
SaveMultiAppConfigFunction · 0.92
saveStateFunction · 0.92
saveLoginRequestedScopeFunction · 0.92
commitBindingFunction · 0.92
WriteFunction · 0.92
pluginWritePackageJSONFunction · 0.92
apps_env_pull.goFile · 0.92
writeMethod · 0.92
writeMailEventFileFunction · 0.92

Calls 1

AtomicWriteFunction · 0.92