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

Method Exists

cli/config/file.go:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71type File string
72
73func (f File) Exists() bool {
74 if f == "" {
75 return false
76 }
77 _, err := os.Stat(string(f))
78 return err == nil
79}
80
81// Delete deletes the file.
82func (f File) Delete() error {

Calls

no outgoing calls