MCPcopy
hub / github.com/git-lfs/git-lfs / TempDir

Method TempDir

fs/fs.go:179–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func (f *Filesystem) TempDir() string {
180 f.mu.Lock()
181 defer f.mu.Unlock()
182
183 if len(f.tmpdir) == 0 {
184 f.tmpdir = filepath.Join(f.LFSStorageDir, "tmp")
185 tools.MkdirAll(f.tmpdir, f)
186 }
187
188 return f.tmpdir
189}
190
191func (f *Filesystem) Cleanup() error {
192 if f == nil {

Callers 15

cleanupTmpMethod · 0.95
TestMethodExistsFunction · 0.45
TestFastWalkBasicFunction · 0.45
TestCloneFileByPathFunction · 0.45
setupPathsMethod · 0.45
TestDirWalkerWalkFunction · 0.45
TestRemoteLocksWithCacheFunction · 0.45
TestRefreshCacheFunction · 0.45
EnvironFunction · 0.45

Calls 3

MkdirAllFunction · 0.92
LockMethod · 0.65
UnlockMethod · 0.65

Tested by 15

TestMethodExistsFunction · 0.36
TestFastWalkBasicFunction · 0.36
TestCloneFileByPathFunction · 0.36
setupPathsMethod · 0.36
TestDirWalkerWalkFunction · 0.36
TestRemoteLocksWithCacheFunction · 0.36
TestRefreshCacheFunction · 0.36