github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/pkg/system/lstat_windows.go (about)

     1  package 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  }