anchor.diff:  
   :: Store the new upload ID
   :: Remove double quotes, spaces, commas, and leading text from AWS response
  -SET LOC_FILE=s3loc.txt
  +SET LOC_FILE=%tempDir%\s3loc.txt
   FINDSTR /C:"Location" "%RESPONSE_FILE%"> "%LOC_FILE%"
   SET /P s3loc= < "%LOC_FILE%"
   DEL "%LOC_FILE%"
  
positive.code: 
  SETLOCAL EnableDelayedExpansion
  
  :: Global files
  SET ERROR_FILE=error.txt
  SET RESPONSE_FILE=response.txt
  SET UPLOAD_ID_FILE=upload-id.txt
  SET ETAGS_JSON=%CD%\upload-part-etags.json
  
  TYPE NUL > "%ERROR_FILE%"
  TYPE NUL > "%RESPONSE_FILE%"
  TYPE NUL > "%UPLOAD_ID_FILE%"
  
negative.code: 
  
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  :: int validatePath(string partsdir)
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  :validatePath
  
  SETLOCAL EnableDelayedExpansion
  
  :: Make sure the provided path exists
  IF NOT EXIST %partsdir% (
      ECHO Error: Could not find the path "%partsdir%" >> "%ERROR_FILE%"
      EXIT /B 1
  )
  
  :: Make sure the provided path is a directory, not a file
  IF NOT EXIST "%partsdir%\*" (
      ECHO Error: The provided path must be a directory. >> "%ERROR_FILE%"
      ECHO "%partsdir%" is a file. >> "%ERROR_FILE%"
      EXIT /B 1
  )
  
  :: Get the number of files and object parts in the provided directory
  SET numFiles=0
  FOR %%f IN ("%partsdir%\*") DO SET /A numFiles+=1
  
  SET numParts=0
  FOR %%F IN ("%partsdir%\*") DO (
      SET ext=%%~xF
      SET ext=!ext:.=!
      SET nonNumeric=
  