MCPcopy
hub / github.com/kopia/kopia / newFSCache

Method newFSCache

cli/command_mount.go:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (c *commandMount) newFSCache() cachefs.DirectoryCacher {
51 return cachefs.NewCache(&cachefs.Options{
52 MaxCachedDirectories: c.maxCachedDirectories,
53 MaxCachedEntries: c.maxCachedEntries,
54 })
55}
56
57func (c *commandMount) run(ctx context.Context, rep repo.Repository) error {
58 var entry fs.Directory

Callers 1

runMethod · 0.95

Calls 1

NewCacheFunction · 0.92

Tested by

no test coverage detected