Add crtime and mtime

This commit is contained in:
byunghwa.yun 2021-08-06 12:13:37 +09:00
parent 8cf0c515bf
commit e84fad9acf

View file

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