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

Function path

t/cmd/lfstest-count-tests.go:266–272  ·  view source on GitHub ↗

path returns an absolute path corresponding to any given path relative to the 't' directory of the current checkout of Git LFS.

(s string)

Source from the content-addressed store, hash-verified

264// path returns an absolute path corresponding to any given path relative to the
265// 't' directory of the current checkout of Git LFS.
266func path(s string) (string, error) {
267 p := filepath.Join(filepath.Dir(os.Getenv("LFSTEST_DIR")), s)
268 if err := os.MkdirAll(filepath.Dir(p), 0777); err != nil {
269 return "", err
270 }
271 return p, nil
272}
273
274// fatal reports the given error (if non-nil), and then dies. If the error was
275// nil, nothing happens.

Callers 3

acquireFunction · 0.85
releaseFunction · 0.85
callWithCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected