import ftplib


def connect_to_ftp_server(ftp_address: str, ftp_dir: str):
    """Connects to an FTP server given an FTP address and directory"""

    ftp = ftplib.FTP(ftp_address)
    ftp.login()
    ftp.cwd(ftp_dir)
    return ftp