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

Method filePath

coderd/cachecompress/compress.go:29–34  ·  view source on GitHub ↗
(cacheDir string)

Source from the content-addressed store, hash-verified

27}
28
29func (c cacheKey) filePath(cacheDir string) string {
30 // URLs can have slashes or other characters we don't want the file system interpreting. So we just encode the path
31 // to a flat base64 filename.
32 filename := base64.URLEncoding.EncodeToString([]byte(c.urlPath))
33 return filepath.Join(cacheDir, c.encoding, filename)
34}
35
36func getCacheKey(encoding string, r *http.Request) cacheKey {
37 return cacheKey{

Callers 2

serveRefMethod · 0.80
compressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected