Send file
Tags: #ftp #file #naas_drivers
Author: Jeremy Ravenel

Input

Import library

1
from naas_drivers import ftp
Copied!

Variables

1
path = "/path/to/file/in/ftp"
2
dest_path = "/path/to/file/in/ftp"
3
user = "my user"
4
passwd = "my passwd"
Copied!

Model

Connect to ftp

1
ftp = ftp.connect(user, passwd)
Copied!

Output

Send the data

1
ftp = naas_drivers.ftp.connect(user, passwd)
2
ftp.send(path, dest_path)
Copied!
Last modified 2mo ago
Copy link
Edit on GitHub