diff options
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go')
-rw-r--r-- | vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go deleted file mode 100644 index bd23c4d..0000000 --- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | // +build !windows | ||
2 | |||
3 | package system | ||
4 | |||
5 | import ( | ||
6 | "syscall" | ||
7 | ) | ||
8 | |||
9 | // Lstat takes a path to a file and returns | ||
10 | // a system.StatT type pertaining to that file. | ||
11 | // | ||
12 | // Throws an error if the file does not exist | ||
13 | func Lstat(path string) (*StatT, error) { | ||
14 | s := &syscall.Stat_t{} | ||
15 | if err := syscall.Lstat(path, s); err != nil { | ||
16 | return nil, err | ||
17 | } | ||
18 | return fromStatT(s) | ||
19 | } | ||