mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-28 06:52:34 +00:00
19 lines
280 B
Go
19 lines
280 B
Go
|
//go:build !windows
|
||
|
// +build !windows
|
||
|
|
||
|
package symlink
|
||
|
|
||
|
import (
|
||
|
"path/filepath"
|
||
|
)
|
||
|
|
||
|
func evalSymlinks(path string) (string, error) {
|
||
|
return filepath.EvalSymlinks(path)
|
||
|
}
|
||
|
|
||
|
func isDriveOrRoot(p string) bool {
|
||
|
return p == string(filepath.Separator)
|
||
|
}
|
||
|
|
||
|
var isAbs = filepath.IsAbs
|