Rename content/fs to content/local

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-07-21 13:58:08 -07:00
parent 938f3185bd
commit bb3c9c5927
10 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
// +build darwin freebsd
package local
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()
}