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

Method tempDir

tq/basic_upload.go:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (a *basicUploadAdapter) tempDir() string {
29 // Dedicated to this adapter rather than shared with basic download.
30 d := filepath.Join(os.TempDir(), "git-lfs-basic-temp")
31 if err := tools.MkdirAll(d, a.fs); err != nil {
32 return os.TempDir()
33 }
34 return d
35}
36
37func (a *basicUploadAdapter) WorkerStarting(workerNum int) (interface{}, error) {
38 return nil, nil

Callers

nothing calls this directly

Calls 2

MkdirAllFunction · 0.92
TempDirMethod · 0.45

Tested by

no test coverage detected