MCPcopy
hub / github.com/caddyserver/certmagic / atomicFile

Struct atomicFile

internal/atomicfile/file.go:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69type atomicFile struct {
70 name string
71 f *os.File
72 closed bool
73 closedMu sync.RWMutex
74}
75
76func newFile(name string, mode os.FileMode) (File, error) {
77 dir := filepath.Dir(name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected