wings/server/filesystem/stat_linux.go
2020-10-17 15:41:13 -06:00

16 lines
242 B
Go

// +build !arm
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(st.Ctim.Sec, st.Ctim.Nsec)
}