MCPcopy
hub / github.com/kopia/kopia / Wrap

Function Wrap

fs/cachefs/cachefs.go:58–60  ·  view source on GitHub ↗

Wrap returns an Entry that wraps another Entry and caches directory reads.

(e fs.Entry, cacher DirectoryCacher)

Source from the content-addressed store, hash-verified

56
57// Wrap returns an Entry that wraps another Entry and caches directory reads.
58func Wrap(e fs.Entry, cacher DirectoryCacher) fs.Entry {
59 return wrapWithContext(e, &cacheContext{cacher})
60}
61
62func wrapWithContext(e fs.Entry, opts *cacheContext) fs.Entry {
63 switch e := e.(type) {

Callers 1

runMethod · 0.92

Calls 1

wrapWithContextFunction · 0.85

Tested by

no test coverage detected