Example #1
0
func SetSysAttributes(sp *sys.Stat_t, a *fuse.Attr) {
	a.Atime = TimespecToGoTime(sp.Atimespec)
	a.Crtime = TimespecToGoTime(sp.Birthtimespec) // time of creation (OS X only)
	a.Ctime = TimespecToGoTime(sp.Ctimespec)      // time of last inode change
	a.Flags = sp.Flags
}