mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
1ec2eac50d
Signed-off-by: Rik Nijessen <riknijessen@gmail.com>
16 lines
218 B
Go
16 lines
218 B
Go
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func Lstat(path string) (*Stat_t, error) {
|
|
s := &syscall.Stat_t{}
|
|
err := syscall.Lstat(path, s)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return fromStatT(s)
|
|
}
|