| 1 |
//go:build !windows |
| 2 |
// +build !windows |
| 3 |
|
| 4 |
package tools |
| 5 |
|
| 6 |
import "path/filepath" |
| 7 |
|
| 8 |
func 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 |
} |