|
|
@ -38,6 +38,10 @@ func (s3a *S3ApiServer) CopyObjectHandler(w http.ResponseWriter, r *http.Request |
|
|
|
s3err.WriteErrorResponse(w, r, s3err.ErrInvalidCopySource) |
|
|
|
return |
|
|
|
} |
|
|
|
if entry.IsDirectory { |
|
|
|
s3err.WriteErrorResponse(w, r, s3err.ErrInvalidCopySource) |
|
|
|
return |
|
|
|
} |
|
|
|
entry.Extended = weed_server.SaveAmzMetaData(r, entry.Extended, isReplace(r)) |
|
|
|
err = s3a.touch(dir, name, entry) |
|
|
|
if err != nil { |
|
|
|