MCPcopy Create free account
hub / github.com/tailscale/tailscale / WriteFile

Method WriteFile

net/dns/direct.go:659–661  ·  view source on GitHub ↗
(name string, contents []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

657}
658
659func (fs directFS) WriteFile(name string, contents []byte, perm os.FileMode) error {
660 return os.WriteFile(fs.path(name), contents, perm)
661}
662
663// runningAsGUIDesktopUser reports whether it seems that this code is
664// being run as a regular user on a Linux desktop. This is a quick

Callers 1

TestDNSTrampleRecoveryFunction · 0.95

Calls 2

pathMethod · 0.95
WriteFileMethod · 0.65

Tested by 1

TestDNSTrampleRecoveryFunction · 0.76