c5843b7615
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
17 lines
237 B
Go
17 lines
237 B
Go
// +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()
|
|
}
|