aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_mv.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-07-21 21:51:38 -0700
committerChris Lu <chris.lu@gmail.com>2019-07-21 21:51:38 -0700
commit862c2cb8e6bcf7e332b8f1cb6b5ec4d0de7bac4e (patch)
tree13ef0087778b409f259e9da8debc2651f530b399 /weed/shell/command_fs_mv.go
parent79762385bdda8fd6bacc747922b557ccf8c45e74 (diff)
downloadseaweedfs-862c2cb8e6bcf7e332b8f1cb6b5ec4d0de7bac4e.tar.xz
seaweedfs-862c2cb8e6bcf7e332b8f1cb6b5ec4d0de7bac4e.zip
go fmt
Diffstat (limited to 'weed/shell/command_fs_mv.go')
-rw-r--r--weed/shell/command_fs_mv.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/weed/shell/command_fs_mv.go b/weed/shell/command_fs_mv.go
index 130bfe4e7..67606ab53 100644
--- a/weed/shell/command_fs_mv.go
+++ b/weed/shell/command_fs_mv.go
@@ -49,12 +49,10 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer
ctx := context.Background()
-
sourceDir, sourceName := filer2.FullPath(sourcePath).DirAndName()
destinationDir, destinationName := filer2.FullPath(destinationPath).DirAndName()
-
return commandEnv.withFilerClient(ctx, filerServer, filerPort, func(client filer_pb.SeaweedFilerClient) error {
// collect destination entry info
@@ -77,7 +75,6 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer
targetName = destinationName
}
-
request := &filer_pb.AtomicRenameEntryRequest{
OldDirectory: sourceDir,
OldName: sourceName,