Fixed time-related metadata.
parent
f9e2e55ac8
commit
420fcddfac
|
@ -159,10 +159,11 @@ type InodeAttributes struct {
|
|||
Size uint64
|
||||
Mode os.FileMode
|
||||
|
||||
// Time information
|
||||
Atime time.Time
|
||||
Mtime time.Time
|
||||
Crtime time.Time
|
||||
// Time information. See `man 2 stat` for full details.
|
||||
Atime time.Time // Time of last access
|
||||
Mtime time.Time // Time of last modification
|
||||
Ctime time.Time // Time of last modification to inode
|
||||
Crtime time.Time // Time of creation (OS X only)
|
||||
|
||||
// Owner information
|
||||
Uid uint32
|
||||
|
|
|
@ -247,6 +247,7 @@ func (fs *memFS) MkDir(
|
|||
Mode: req.Mode,
|
||||
Atime: now,
|
||||
Mtime: now,
|
||||
Ctime: now,
|
||||
Crtime: now,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue