|
|
@ -13,9 +13,9 @@ func timespecToTime(ts syscall.Timespec) time.Time {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func GetFileCreationTime(fileinfo os.FileInfo) time.Time {
|
|
|
|
func GetFileCreationTime(fileinfo os.FileInfo) time.Time {
|
|
|
|
return timespecToTime(stat_t.Ctim)
|
|
|
|
return timespecToTime(fileinfo.Sys().(*syscall.Stat_t).Ctim)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func GetFileAccessTime(fileinfo os.FileInfo) time.Time {
|
|
|
|
func GetFileAccessTime(fileinfo os.FileInfo) time.Time {
|
|
|
|
return timespecToTime(stat_t.Atim)
|
|
|
|
return timespecToTime(fileinfo.Sys().(*syscall.Stat_t).Atim)
|
|
|
|
}
|
|
|
|
}
|
|
|
|