Initial windows runtime work
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
17
content/store_unix.go
Normal file
17
content/store_unix.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// +build linux
|
||||
|
||||
package content
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
func getStartTime(fi os.FileInfo) time.Time {
|
||||
if st, ok := fi.Sys().(*syscall.Stat_t); ok {
|
||||
return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
|
||||
}
|
||||
|
||||
return fi.ModTime()
|
||||
}
|
Reference in New Issue
Block a user