diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-06 20:27:12 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-06 20:27:12 -0700 |
| commit | 679f800caafff8b31c645755d4316da543f5e99d (patch) | |
| tree | d0cce2379a5d335d2b30fcffd3786493cae364e7 /weed/shell/command_fs_mkdir.go | |
| parent | 286e5dd37525787b0610c41a2bb18a947a429d7d (diff) | |
| parent | 0c0f77e2ae45e1f905d33bf9cf129667665121ab (diff) | |
| download | seaweedfs-679f800caafff8b31c645755d4316da543f5e99d.tar.xz seaweedfs-679f800caafff8b31c645755d4316da543f5e99d.zip | |
Merge branch 'master' into add_remote_storage
Diffstat (limited to 'weed/shell/command_fs_mkdir.go')
| -rw-r--r-- | weed/shell/command_fs_mkdir.go | 3 |
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), }, }, |
