module homeblog.pyhomeftp
¶
Short summary¶
module ensae_teaching_cs.homeblog.pyhomeftp
provides some functionalities to upload file to a website
Methods¶
method |
truncated documentation |
---|---|
constructor |
|
|
|
|
|
|
|
transfers a file |
Documentation¶
provides some functionalities to upload file to a website
Obsolète depuis la version 0.8.
- class ensae_teaching_cs.homeblog.pyhomeftp.pyhomeFTP(site, login, password)¶
Bases :
ftplib.FTP
Old version to upload file on a FTP web site
constructor
- __init__(site, login, password)¶
constructor
- close()¶
Close the connection without assuming anything about it.
- cwd(path, create=False)¶
Change to a directory.
- dir(path='.')¶
List a directory in long form. By default list current directory to stdout. Optional last argument is callback function; all non-empty arguments before it are concatenated to the LIST command. (This should only be used for a pathname.)
- mkd(path)¶
Make a directory, return its full pathname.
- pwd()¶
Return current working directory.
- transfer(file, to, debug=False)¶
transfers a file
- Paramètres
file – file
to – destination
debug – if True, displays more information
- Renvoie
status