Signed-off-by: Rik Nijessen <riknijessen@gmail.com> Upstream-commit: 1ec2eac50db2c98e00a488664625a22bf3757066 Component: engine
17 lines
218 B
Go
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)
|
|
}
|