aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbyunghwa.yun <combine@combineads.co.kr>2021-08-06 12:13:37 +0900
committerbyunghwa.yun <combine@combineads.co.kr>2021-08-06 12:13:37 +0900
commite84fad9acfe02e7634355749fffcad62364063cb (patch)
tree51bdcce46f60644cd5e44aa888204c200efeb40d
parent8cf0c515bfb45c5d8e6c71f96c43f91cae30ea9d (diff)
downloadseaweedfs-e84fad9acfe02e7634355749fffcad62364063cb.tar.xz
seaweedfs-e84fad9acfe02e7634355749fffcad62364063cb.zip
Add crtime and mtime
-rw-r--r--weed/shell/command_fs_mkdir.go3
1 files changed, 3 insertions, 0 deletions
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),
},
},