Support arm builds

This commit is contained in:
Dane Everitt
2020-10-17 13:52:38 -07:00
parent 99fd416cee
commit 19051c99ef
4 changed files with 48 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
package filesystem
import (
"syscall"
"time"
)
// Returns the time that the file/folder was created.
func (s *Stat) CTime() time.Time {
st := s.Info.Sys().(*syscall.Stat_t)
return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
}