github.com/shishir-a412ed/docker@v1.3.2-0.20180103180333-fda904911d87/pkg/symlink/fs_unix.go (about)

     1  // +build !windows
     2  
     3  package 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  }