]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat_windows.go
provider: Ensured Go 1.11 in TravisCI and README
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / fsouza / go-dockerclient / external / github.com / docker / docker / pkg / system / lstat_windows.go
CommitLineData
9b12e4fe
JC
1// +build windows
2
3package system
4
5import (
6 "os"
7)
8
9// Lstat calls os.Lstat to get a fileinfo interface back.
10// This is then copied into our own locally defined structure.
11// Note the Linux version uses fromStatT to do the copy back,
12// but that not strictly necessary when already in an OS specific module.
13func Lstat(path string) (*StatT, error) {
14 fi, err := os.Lstat(path)
15 if err != nil {
16 return nil, err
17 }
18
19 return &StatT{
20 name: fi.Name(),
21 size: fi.Size(),
22 mode: fi.Mode(),
23 modTime: fi.ModTime(),
24 isDir: fi.IsDir()}, nil
25}