MCPcopy Create free account
hub / github.com/VKCOM/nocc / MakeSrcFileCache

Function MakeSrcFileCache

internal/server/src-cache.go:17–24  ·  view source on GitHub ↗
(cacheDir string, limitBytes int64)

Source from the content-addressed store, hash-verified

15}
16
17func MakeSrcFileCache(cacheDir string, limitBytes int64) (*SrcFileCache, error) {
18 cache, err := MakeFileCache(cacheDir, limitBytes)
19 if err != nil {
20 return nil, err
21 }
22
23 return &SrcFileCache{cache}, nil
24}
25
26func (cache *SrcFileCache) MakeTempFileForUploadSaving(serverFileName string) (*os.File, error) {
27 // path.Dir(serverFileName) is created in advance, see Client.MkdirAllForSession()

Callers 1

mainFunction · 0.92

Calls 1

MakeFileCacheFunction · 0.85

Tested by

no test coverage detected