2014-11-13 20:00:04 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2014-11-13 20:36:05 +00:00
|
|
|
func Lstat(path string) (*Stat, error) {
|
2014-11-13 20:00:04 +00:00
|
|
|
s := &syscall.Stat_t{}
|
|
|
|
err := syscall.Lstat(path, s)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2014-11-13 20:36:05 +00:00
|
|
|
return fromStatT(s)
|
2014-11-13 20:00:04 +00:00
|
|
|
}
|