3d2fae35 | // +build !windows package system |
069fdc8a | import ( "syscall" ) |
3d2fae35 | |
e94a48ff | // Lstat takes a path to a file and returns |
7e420ad8 | // a system.StatT type pertaining to that file. |
e94a48ff | // // Throws an error if the file does not exist |
7e420ad8 | func Lstat(path string) (*StatT, error) { |
3d2fae35 | s := &syscall.Stat_t{} |
84453814 | if err := syscall.Lstat(path, s); err != nil { |
3d2fae35 | return nil, err } |
2180aa4f | return fromStatT(s) |
3d2fae35 | } |