module filehelper.transfer_api_ftp
¶
Short summary¶
module pyquickhelper.filehelper.transfer_api_ftp
API to move files using FTP
Classes¶
class |
truncated documentation |
---|---|
Defines an API to transfer files over a remote location through FTP. |
Methods¶
method |
truncated documentation |
---|---|
close the connection |
|
connect |
|
retrieve data from path |
|
It assumes a data holds in memory, tansfer data to path. |
Documentation¶
API to move files using FTP
- class pyquickhelper.filehelper.transfer_api_ftp.TransferAPIFtp(site, login, password, root='backup', ftps='FTP', fLOG=<function noLOG>)[source]¶
Bases:
TransferAPI
Defines an API to transfer files over a remote location through FTP.
- Parameters:
site – website
login – login
password – password
root – root on the website
ftps – protocol, see
TransferFTP
fLOG – logging function
- __init__(site, login, password, root='backup', ftps='FTP', fLOG=<function noLOG>)[source]¶
- Parameters:
site – website
login – login
password – password
root – root on the website
ftps – protocol, see
TransferFTP
fLOG – logging function
- retrieve(path, exc=True)[source]¶
retrieve data from path
- Parameters:
path – remove location
exc – keep exception
- Returns:
data