From e84fad9acfe02e7634355749fffcad62364063cb Mon Sep 17 00:00:00 2001 From: "byunghwa.yun" Date: Fri, 6 Aug 2021 12:13:37 +0900 Subject: [PATCH] Add crtime and mtime --- weed/shell/command_fs_mkdir.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/shell/command_fs_mkdir.go b/weed/shell/command_fs_mkdir.go index 71a9daece..11b663eec 100644 --- a/weed/shell/command_fs_mkdir.go +++ b/weed/shell/command_fs_mkdir.go @@ -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), }, },