Merge pull request #2237 from combineads/add_mtime

Add crtime and mtime
This commit is contained in:
Chris Lu 2021-08-05 21:27:13 -07:00 committed by GitHub
commit e23ca3845b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/util"
"io"
"os"
"time"
)
func init() {
@ -43,6 +44,8 @@ func (c *commandFsMkdir) Do(args []string, commandEnv *CommandEnv, writer io.Wri
Name: name,
IsDirectory: true,
Attributes: &filer_pb.FuseAttributes{
Mtime: time.Now().Unix(),
Crtime: time.Now().Unix(),
FileMode: uint32(0777 | os.ModeDir),
},
},