MCPcopy Create free account
hub / github.com/HashLoad/boss / makeWtFileSystem

Function makeWtFileSystem

core/gitWrapper/git_embedded.go:85–91  ·  view source on GitHub ↗
(dep models.Dependency)

Source from the content-addressed store, hash-verified

83}
84
85func makeWtFileSystem(dep models.Dependency) billy.Filesystem {
86 paths.EnsureCacheDir(dep)
87 dir := filepath.Join(env.GetCacheDir(), fmt.Sprintf("%s_wt", dep.GetHashName()))
88 fs := osfs.New(dir)
89
90 return fs
91}

Callers 2

CloneCacheEmbeddedFunction · 0.85
UpdateCacheEmbeddedFunction · 0.85

Calls 4

EnsureCacheDirFunction · 0.92
GetCacheDirFunction · 0.92
GetHashNameMethod · 0.80
NewMethod · 0.80

Tested by

no test coverage detected