MCPcopy Create free account
hub / github.com/capnspacehook/pandorasbox / WriteFile

Method WriteFile

absfs/filesystem.go:42–42  ·  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.

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

WriteFileMethod · 0.65
WriteFileFunction · 0.65
WriteFileMethod · 0.65
FuzzVFSRaceFunction · 0.65
TestTruncateToZeroFunction · 0.65
TestRenameFunction · 0.65
TestRenameOverwriteDestFunction · 0.65
TestModTimeFunction · 0.65

Implementers 2

pbFSosfs/osfs.go
virtualFSvfs/vfs.go

Calls

no outgoing calls

Tested by 5

FuzzVFSRaceFunction · 0.52
TestTruncateToZeroFunction · 0.52
TestRenameFunction · 0.52
TestRenameOverwriteDestFunction · 0.52
TestModTimeFunction · 0.52