mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
14 lines
283 B
Go
14 lines
283 B
Go
package system
|
|
|
|
import "os"
|
|
|
|
// Lstat calls os.Lstat to get a fileinfo interface back.
|
|
// This is then copied into our own locally defined structure.
|
|
func Lstat(path string) (*StatT, error) {
|
|
fi, err := os.Lstat(path)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return fromStatT(&fi)
|
|
}
|