mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 03:39:22 +08:00
refactoring
This commit is contained in:
@@ -73,7 +73,7 @@ func (ce *CommandEnv) isDirectory(path string) bool {
|
||||
|
||||
func (ce *CommandEnv) confirmIsLocked(args []string) error {
|
||||
|
||||
if ce.locker.IsLocking() {
|
||||
if ce.locker.IsLocked() {
|
||||
return nil
|
||||
}
|
||||
ce.locker.SetMessage(fmt.Sprintf("%v", args))
|
||||
@@ -82,6 +82,10 @@ func (ce *CommandEnv) confirmIsLocked(args []string) error {
|
||||
|
||||
}
|
||||
|
||||
func (ce *CommandEnv) isLocked() bool {
|
||||
return ce.locker.IsLocked()
|
||||
}
|
||||
|
||||
func (ce *CommandEnv) checkDirectory(path string) error {
|
||||
|
||||
dir, name := util.FullPath(path).DirAndName()
|
||||
|
Reference in New Issue
Block a user