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

Method tempDir

tq/ssh.go:166–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164}
165
166func (a *SSHAdapter) tempDir() string {
167 // Shared with the basic download adapter.
168 d := filepath.Join(a.fs.LFSStorageDir, "incomplete")
169 if err := tools.MkdirAll(d, a.fs); err != nil {
170 return os.TempDir()
171 }
172 return d
173}
174
175// DoTransfer performs a single transfer within a worker. ctx is any context returned from WorkerStarting
176func (a *SSHAdapter) DoTransfer(ctx interface{}, t *Transfer, cb ProgressCallback, authOkFunc func()) error {

Callers 1

downloadMethod · 0.95

Calls 2

MkdirAllFunction · 0.92
TempDirMethod · 0.45

Tested by

no test coverage detected