MCPcopy
hub / github.com/purpleidea/mgmt / WriteFile

Method WriteFile

engine/fs.go:97–97  ·  view source on GitHub ↗

WriteFile writes data to the named file, creating it if necessary. If the file does not exist, WriteFile creates it with permissions perm (before umask); otherwise WriteFile truncates it before writing, without changing permissions. Since Writefile requires multiple system calls to complete, a failu

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

Source from the content-addressed store, hash-verified

95 //
96 // This mimics the internal os.WriteFile function and has the same docs.
97 WriteFile(name string, data []byte, perm os.FileMode) error
98}

Callers 15

ExecMethod · 0.65
DeployLangMethod · 0.65
TestAstFunc1Function · 0.65
TestAstFunc2Function · 0.65
TestAstFunc3Function · 0.65
overwriteTestFunction · 0.65
CallMethod · 0.65

Implementers 2

PGPpgp/pgp.go
Fsetcd/fs/fs.go

Calls

no outgoing calls