<s>[INST] Write python code to connect to a FTP server. [/INST] Here is a python script that connects to an FTP server using the ftplib library. It requires the user to input a username and password for the associated server. 

```python
from ftplib import FTP
import getpass

# IP address for FTP server
myhost = '127.0.0.1' 

with FTP(myhost) as ftp:
    username = input('Enter username: ')
    password = getpass.getpass('Enter password: ')
    ftp.login(username, password) 
```

Is there anything else I can do to help?</s>\ <s>[INST] That's a good start, and now, I need to recursively list all files and save their paths and sizes to a pandas dataframe, please. [/INST] ```
from ftplib import FTP
import getpass
import pandas as pd

def get_file_list(ftp, path='', df=None):
    # Initialize dataframe if it doesn't exist
    if df is None:
        df = pd.DataFrame(columns=['path', 'size'])

    # Get list of files in current directory
    files = ftp.nlst(path)

    # Iterate through files
    for file in files:
        # If file is a directory, recursively call function
        if ftp.nlst(file) != []:
            df = get_file_list(ftp, path=file, df=df)
        # If file is a regular file, add its path and size to dataframe
        else:
            size = ftp.size(file)
            df = df.append({'path': file, 'size': size}, ignore_index=True)

    return df

# IP address for FTP server
myhost = '127.0.0.1'

with FTP(myhost) as ftp:
    username = input('Enter username: ')
    password = getpass.getpass('Enter password: ')
    ftp.login(username, password)

    # Get list of all files in FTP server and save to pandas dataframe
    file_list = get_file_list(ftp)

# Print dataframe
print(file_list)
```
This should recursively list all files in the FTP server and save their paths and sizes to a pandas dataframe. Let me know if you have any questions or if there's anything else I can do to help!</s>