MCPcopy Index your code
hub / github.com/coder/coder / Delete

Method Delete

cli/config/file.go:82–87  ·  view source on GitHub ↗

Delete deletes the file.

()

Source from the content-addressed store, hash-verified

80
81// Delete deletes the file.
82func (f File) Delete() error {
83 if f == "" {
84 return xerrors.Errorf("empty file path")
85 }
86 return os.Remove(string(f))
87}
88
89// Write writes the string to the file.
90func (f File) Write(s string) error {

Callers

nothing calls this directly

Calls 2

RemoveMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected