diff options
Diffstat (limited to 'weed/shell/commands.go')
| -rw-r--r-- | weed/shell/commands.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 2faba4280..a43196b62 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -68,6 +68,16 @@ func (ce *CommandEnv) isDirectory(path string) bool { } +func (ce *CommandEnv) confirmIsLocked() error { + + if ce.locker.isLocking { + return nil + } + + return fmt.Errorf("need to lock to continue") + +} + func (ce *CommandEnv) checkDirectory(path string) error { dir, name := util.FullPath(path).DirAndName() |
