diff options
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index d9c5bc486..ffdf4e968 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -311,7 +311,7 @@ func (worker *FileCopyWorker) uploadFileAsOne(task FileCopyTask, f *os.File) err Replication: *worker.options.replication, Collection: *worker.options.collection, TtlSec: worker.options.ttlSec, - ParentPath: task.destinationUrlPath, + Path: task.destinationUrlPath, } assignResult, assignError = client.AssignVolume(context.Background(), request) @@ -405,7 +405,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, Replication: *worker.options.replication, Collection: *worker.options.collection, TtlSec: worker.options.ttlSec, - ParentPath: task.destinationUrlPath, + Path: task.destinationUrlPath, } assignResult, assignError = client.AssignVolume(context.Background(), request) |
