
Move the filesystem content store implementation to a subpackage of content. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
16 lines
229 B
Go
16 lines
229 B
Go
package fs
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
func getStartTime(fi os.FileInfo) time.Time {
|
|
if st, ok := fi.Sys().(*syscall.Stat_t); ok {
|
|
return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
|
|
}
|
|
|
|
return fi.ModTime()
|
|
}
|