code: def _copy_status(self, filename, size, sent):
          
          output = "Transferred %.0f%% of the file %s" % (
              (float(sent) / float(size) * 100), path.normpath(filename))
          output += (' ' * (120 - len(output)))
          if filename != self._filename:
              if self._filename is not None:
                  print('')
              self._filename = filename
          print(output, end='\r')
docs: Echo status of an SCP operation.
  
          Purpose: Callback function for an SCP operation. Used to show
                 | the progress of an actively running copy. This directly
                 | prints to stdout, one line for each file as it's copied.
                 | The parameters received by this function are those received
                 | from the scp.put or scp.get function, as explained in the
                 | python scp module docs.
  
          @param filename: The filename of file being copied.
          @type filename: str
          @param size: The total size of the current file being copied.
          @type size: str or float
          @param sent: The amount of data sent for the current file being copied.
          @type sent: str or float
  
          @returns: None