diff options
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 218abf645..d7b474628 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -201,6 +201,7 @@ func uploadFileAsOne(filerAddress, filerGrpcAddress string, urlFolder string, f Offset: 0, Size: uint64(uploadResult.Size), Mtime: time.Now().UnixNano(), + ETag: uploadResult.ETag, }) fmt.Printf("copied %s => http://%s%s%s\n", fileName, filerAddress, urlFolder, fileName) @@ -278,6 +279,7 @@ func uploadFileInChunks(filerAddress, filerGrpcAddress string, urlFolder string, Offset: i * chunkSize, Size: uint64(uploadResult.Size), Mtime: time.Now().UnixNano(), + ETag: uploadResult.ETag, }) fmt.Printf("uploaded %s-%d to %s [%d,%d)\n", fileName, i+1, targetUrl, i*chunkSize, i*chunkSize+int64(uploadResult.Size)) } |
