Browse Source
Merge pull request #2237 from combineads/add_mtime
Add crtime and mtime
pull/2252/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
weed/shell/command_fs_mkdir.go
|
@ -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), |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|