aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_mv.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_fs_mv.go')
-rw-r--r--weed/shell/command_fs_mv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_fs_mv.go b/weed/shell/command_fs_mv.go
index 78f797f6c..9b74e85e9 100644
--- a/weed/shell/command_fs_mv.go
+++ b/weed/shell/command_fs_mv.go
@@ -63,7 +63,7 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer
var targetDir, targetName string
// moving a file or folder
- if err == nil && respDestinationLookupEntry.Entry!= nil && respDestinationLookupEntry.Entry.IsDirectory {
+ if err == nil && respDestinationLookupEntry.Entry != nil && respDestinationLookupEntry.Entry.IsDirectory {
// to a directory
targetDir = filepath.ToSlash(filepath.Join(destinationDir, destinationName))
targetName = sourceName