github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/symlink/fs_unix.go (about) 1 // +build !windows 2 3 package symlink // import "github.com/demonoid81/moby/pkg/symlink" 4 5 import ( 6 "path/filepath" 7 ) 8 9 func evalSymlinks(path string) (string, error) { 10 return filepath.EvalSymlinks(path) 11 } 12 13 func isDriveOrRoot(p string) bool { 14 return p == string(filepath.Separator) 15 } 16 17 var isAbs = filepath.IsAbs