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

Function CanonicalizeSystemPath

tools/filetools_nix.go:8–14  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

6import "path/filepath"
7
8func CanonicalizeSystemPath(path string) (string, error) {
9 path, err := filepath.Abs(path)
10 if err != nil {
11 return "", err
12 }
13 return filepath.EvalSymlinks(path)
14}

Callers 6

computeLockDataFunction · 0.92
lockPathFunction · 0.92
changeToWorkingCopyFunction · 0.92
gitDirAtPathFunction · 0.92
ResolveSymlinksFunction · 0.70
CanonicalizePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected