7 // fromStatT converts a syscall.Stat_t type to a system.Stat_t type
8 func fromStatT(s *syscall.Stat_t) (*StatT, error) {
9 return &StatT{size: s.Size,
17 // FromStatT exists only on linux, and loads a system.StatT from a
19 func FromStatT(s *syscall.Stat_t) (*StatT, error) {
23 // Stat takes a path to a file and returns
24 // a system.StatT type pertaining to that file.
26 // Throws an error if the file does not exist
27 func Stat(path string) (*StatT, error) {
28 s := &syscall.Stat_t{}
29 if err := syscall.Stat(path, s); err != nil {