code: def put(self, local_path, path, atomic=True):
          
          self._connect()
  
          if self.sftp:
              self._sftp_put(local_path, path, atomic)
          else:
              self._ftp_put(local_path, path, atomic)
  
          self._close()
docs: Put file from local filesystem to (s)FTP.