full diff: https://github.com/moby/sys/compare/symlink/v0.1.0...symlink/v0.2.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			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
 |