github.com/titanous/docker@v1.4.1/pkg/system/lstat.go (about)

     1  // +build !windows
     2  
     3  package system
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  func Lstat(path string) (*Stat, error) {
    10  	s := &syscall.Stat_t{}
    11  	err := syscall.Lstat(path, s)
    12  	if err != nil {
    13  		return nil, err
    14  	}
    15  	return fromStatT(s)
    16  }