path returns an absolute path corresponding to any given path relative to the 't' directory of the current checkout of Git LFS.
(s string)
| 264 | // path returns an absolute path corresponding to any given path relative to the |
| 265 | // 't' directory of the current checkout of Git LFS. |
| 266 | func 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. |
no outgoing calls
no test coverage detected