1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00
Files
docs/pkg/system/lstat.go
2015-03-16 11:46:07 +01:00

17 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)
}