Move content store implementation

Move the filesystem content store implementation to a
subpackage of content.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-07-12 15:25:13 -07:00
parent 9b53b8b68d
commit 442365248b
10 changed files with 53 additions and 42 deletions

17
content/fs/store_unix.go Normal file
View File

@@ -0,0 +1,17 @@
// +build darwin freebsd
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.Ctimespec.Sec), int64(st.Ctimespec.Nsec))
}
return fi.ModTime()
}