diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-08-05 21:27:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 21:27:13 -0700 |
| commit | e23ca3845b0680e1ad8e39814a9ea43192c4cc58 (patch) | |
| tree | 23bc86f86f04967209187218a7e3c2d305761184 | |
| parent | 1e22166939f3e5ef7b7ff439e724f69f4a923f89 (diff) | |
| parent | e84fad9acfe02e7634355749fffcad62364063cb (diff) | |
| download | seaweedfs-e23ca3845b0680e1ad8e39814a9ea43192c4cc58.tar.xz seaweedfs-e23ca3845b0680e1ad8e39814a9ea43192c4cc58.zip | |
Merge pull request #2237 from combineads/add_mtime
Add crtime and mtime
| -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), }, }, |
