github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/system/lstat_windows.go (about) 1 package system // import "github.com/demonoid81/moby/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 }