def connect_to_server(url, login, password, folder, verbose=False):
    """Connects to the FTP server using the given connection settings.

    Use the given ``url``, ``login`` and ``password`` information to make a connection. Move to the given ``folder`` (if it exists), and return a ``FTP`` object.

    To get to the lower level details about the FTP connection, use the optional parameter ``verbose=True``.

    """
    # create FTP connection
    ftp = FTP(url, login, password)
    if verbose == True:
        print ftp.getwelcome() % "%s"
    # move to folder
    ftp.cwd(folder)
    if verbose == True:
        ftp.retrlines('LIST')
        print
    return ftp
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/ftp.py/connect_to_server/swapped operands of `%`