|
@ -49,12 +49,10 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer |
|
|
|
|
|
|
|
|
ctx := context.Background() |
|
|
ctx := context.Background() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sourceDir, sourceName := filer2.FullPath(sourcePath).DirAndName() |
|
|
sourceDir, sourceName := filer2.FullPath(sourcePath).DirAndName() |
|
|
|
|
|
|
|
|
destinationDir, destinationName := filer2.FullPath(destinationPath).DirAndName() |
|
|
destinationDir, destinationName := filer2.FullPath(destinationPath).DirAndName() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return commandEnv.withFilerClient(ctx, filerServer, filerPort, func(client filer_pb.SeaweedFilerClient) error { |
|
|
return commandEnv.withFilerClient(ctx, filerServer, filerPort, func(client filer_pb.SeaweedFilerClient) error { |
|
|
|
|
|
|
|
|
// collect destination entry info
|
|
|
// collect destination entry info
|
|
@ -77,7 +75,6 @@ func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer |
|
|
targetName = destinationName |
|
|
targetName = destinationName |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
request := &filer_pb.AtomicRenameEntryRequest{ |
|
|
request := &filer_pb.AtomicRenameEntryRequest{ |
|
|
OldDirectory: sourceDir, |
|
|
OldDirectory: sourceDir, |
|
|
OldName: sourceName, |
|
|
OldName: sourceName, |
|
|