MCPcopy
hub / github.com/openpubkey/opkssh / WriteFile

Method WriteFile

policy/files/filesystem.go:44–44  ·  view source on GitHub ↗

WriteFile writes data to a file with the given permission.

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

Source from the content-addressed store, hash-verified

42 CreateFile(path string) (afero.File, error)
43 // WriteFile writes data to a file with the given permission.
44 WriteFile(path string, data []byte, perm fs.FileMode) error
45
46 // Chmod sets the permission mode bits on a path.
47 Chmod(path string, perm fs.FileMode) error

Implementers 2

defaultFileSystempolicy/files/filesystem.go
mockFileSystemcommands/permissions_mocks_test.go

Calls

no outgoing calls