mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
15 lines
331 B
Go
15 lines
331 B
Go
![]() |
package system // import "github.com/docker/docker/pkg/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)
|
||
|
}
|