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

Method exists

site/site.go:245–251  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

243}
244
245func (h *Handler) exists(filePath string) bool {
246 f, err := h.opts.SiteFS.Open(filePath)
247 if err == nil {
248 _ = f.Close()
249 }
250 return err == nil
251}
252
253type htmlState struct {
254 CSRF csrfState

Callers 1

ServeHTTPMethod · 0.95

Implementers 8

dispatchInterceptorcoderd/notifications/utils_test.go
chanHandlercoderd/notifications/utils_test.go
barrierHandlercoderd/notifications/metrics_test.go
fakeHandlercoderd/notifications/notifications_tes
santaHandlercoderd/notifications/manager_test.go
InboxHandlercoderd/notifications/dispatch/inbox.go
SMTPHandlercoderd/notifications/dispatch/smtp.go
WebhookHandlercoderd/notifications/dispatch/webhook.

Calls 2

CloseMethod · 0.65
OpenMethod · 0.45

Tested by

no test coverage detected