code: def buildPart(self,commandPart,fileNameWithPath,count,args):
          
          # Get the path to the file:
          filePath = os.path.split(fileNameWithPath)[0]
          # Append '/' if there is a path, i.e., the file is not in the local directory:
  	if filePath != '':
              filePath = filePath +'/'
          # Get the file name without the path:
          fileNameWithoutPath = os.path.basename(fileNameWithPath)
          # Get the file name without the path and without the extension:
          plainFileName = os.path.splitext(fileNameWithoutPath)[0]
          # Get the extension:
          fileExtension = os.path.splitext(fileNameWithoutPath)[1]
          
          # The original command part is retained:
          originalCommandPart = commandPart
  
          # Replace the file placeholder character with the file:
          commandPart = self.replaceInCommand(commandPart,MapConstants.placeholder,fileNameWithoutPath,fileNameWithPath)
          # Replace the path placeholder with the path:
          commandPart = self.replaceInCommand(commandPart,MapConstants.placeholderPath,filePath,filePath)
          # Replace the plain file placeholder with the plain file:
          commandPart = self.replaceInCommand(commandPart,MapConstants.placeholderFileName,plainFileName,plainFileName)
          # Replace the extension placeholder with the extension:
          commandPart = self.replaceInCommand(commandPart,MapConstants.placeholderExtension,fileExtension,fileExtension)
          # Replace the placeholder for the counter with the actual count:
          if args.number_length == 0:
              replacementString = str(count)
          else:
              replacementString = ('{0:0'+str(args.number_length)+'d}').format(count)
          commandPart = self.replaceInCommand(commandPart,MapConstants.placeholderCounter,replacementString,replacementString)
          # If the command part changed, it is put in quotes to avoid problems with special characters:
          if originalCommandPart != commandPart:
              commandPart = '\"' + commandPart + '\"'
          return commandPart
docs: This is in internal method that builds a part of the command,
          see buildCommand().