
Linux has st.Atim, st.Mtim, OSX hat st.Atimespec, st.Mtimespec. Reported at https://github.com/rfjakob/gocryptfs/issues/15#issuecomment-279130217
10 lines
161 B
Go
10 lines
161 B
Go
package matrix
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func extractAtimeMtime(st syscall.Stat_t) [2]syscall.Timespec {
|
|
return [2]syscall.Timespec{st.Atimespec, st.Mtimespec}
|
|
}
|