aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/shell/command_fs_mkdir.go3
-rw-r--r--weed/shell/commands.go2
2 files changed, 4 insertions, 1 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),
},
},
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 0e285214b..697c68ae3 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -75,7 +75,7 @@ func (ce *CommandEnv) confirmIsLocked() error {
return nil
}
- return fmt.Errorf("need to lock to continue")
+ return fmt.Errorf("need to run \"lock\" first to continue")
}