github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/pkg/system/lstat_windows.go (about)

     1  package system // import "github.com/docker/docker/pkg/system"
     2  
     3  import "os"
     4  
     5  // Lstat calls os.Lstat to get a fileinfo interface back.
     6  // This is then copied into our own locally defined structure.
     7  func Lstat(path string) (*StatT, error) {
     8  	fi, err := os.Lstat(path)
     9  	if err != nil {
    10  		return nil, err
    11  	}
    12  
    13  	return fromStatT(&fi)
    14  }