<jupyter_start><jupyter_text>FTP - Send file<jupyter_code>import naas_drivers
# Connect 
user = "my user"
passwd = "<PASSWORD>"
ftp = naas_drivers.ftp.connect(user, passwd)
path = "/path/to/local/file"
dest_path = "/path/to/file/in/ftp"
user = "my user"
passwd = "<PASSWORD>"
ftp = naas_drivers.ftp.connect(user, passwd)
ftp.send(path, dest_path)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15691489361702127, 'fraction_numerical': 0.0, 'mean_word_length': 6.113207547169812, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '312534', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 165, 'n_tokens_neox': 154, 'n_words': 27, 'path': 'FTP/FTP_Send_file.ipynb', 'repo_name': 'dineshh912/awesome-notebooks', 'size': '374'}