Support arm builds
This commit is contained in:
13
server/filesystem/stat_arm.go
Normal file
13
server/filesystem/stat_arm.go
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user