anchor.diff:  EXIT /B 0
   
   ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  -:: int createMultipartUpload(string uploadIdFile, string bucket, string key, string options="", string profile)
  +:: int createMultipartUpload(string uploadIdFile, string bucket, string key, string profile, string options="")
   ::
   :: If successful, the upload-id of the new multipart upload will be stored to the provided file
   ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  
positive.code:     ECHO                     Like with other AWS commands, you can also set the 
      ECHO                     AWS_DEFAULT_PROFILE environment variable beforehand.  Any actual
      ECHO                     value passed to --profile overrides this environment variable.
      ECHO    -o, --options    Options to pass to the create-multipart-upload command.  Make
      ECHO                     sure all options are enclosed in double quotes, e.g.:
      ECHO                     `--options "--metadata key=value --storage-class STANDARD_IA"`
      ECHO.
      ECHO    Options can also be specified with a '/' character.  E.g., '/H' to show help.
  )
  
negative.code: SET completeErrFile=%tempDir%\completeErr.txt
  
  :: Create the AWS S3 multipart upload (can't pass null string to --metadata argument)
  ECHO.
  ECHO Completing the multipart upload to %key% in bucket %bucket%...
  aws s3api complete-multipart-upload ^
      --bucket %bucket% ^
      --key %key% ^
      --profile %profile% ^
      --multipart-upload file://"%ETAGS_JSON%" --upload-id %uploadID% > "%RESPONSE_FILE%" 2> "%completeErrFile%"      &:: File redirection must occur on same line as last option
  
  :: Rethrow any error messages from the AWS API
  FOR /F %%i IN ("%completeErrFile%") DO SET size=%%~zi
  