Links

Send file

Tags: #ftp #file #naas_drivers #operations #snippet
Author: Jeremy Ravenel
Description: This notebook allows users to securely transfer files to a remote server using the File Transfer Protocol (FTP).

Input

Import library

from naas_drivers import ftp

Variables

path = "/path/to/file/in/ftp"
dest_path = "/path/to/file/in/ftp"
user = "my user"
passwd = "my passwd"

Model

Connect to ftp

ftp = ftp.connect(user, passwd)

Output

Send the data

ftp = naas_drivers.ftp.connect(user, passwd)
ftp.send(path, dest_path)
Last modified 1mo ago