2018-02-05 21:05:59 +00:00
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
2014-11-13 20:00:04 +00:00
|
|
|
|
2017-04-05 22:35:43 +00:00
|
|
|
import "os"
|
2015-05-07 22:14:11 +00:00
|
|
|
|
|
|
|
// Lstat calls os.Lstat to get a fileinfo interface back.
|
|
|
|
// This is then copied into our own locally defined structure.
|
2015-07-28 16:13:12 +00:00
|
|
|
func Lstat(path string) (*StatT, error) {
|
2015-05-07 22:14:11 +00:00
|
|
|
fi, err := os.Lstat(path)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2017-04-05 22:35:43 +00:00
|
|
|
return fromStatT(&fi)
|
2014-11-13 20:00:04 +00:00
|
|
|
}
|