module homeblog.pyhomeftp

Inheritance diagram of ensae_teaching_cs.homeblog.pyhomeftp

Short summary

module ensae_teaching_cs.homeblog.pyhomeftp

provides some functionalities to upload file to a website

Classes

class truncated documentation
pyhomeFTP Old version to upload file on a FTP web site

Methods

method truncated documentation
__init__ constructor
close  
cwd  
dir  
mkd  
printlist  
privatelogin  
pwd  
RunCommand  
transfer transfers a file

Documentation

provides some functionalities to upload file to a website

Obsolète depuis la version 0.8.

source on GitHub

class ensae_teaching_cs.homeblog.pyhomeftp.pyhomeFTP(site, login, password)[source]

Bases : ftplib.FTP

Old version to upload file on a FTP web site

source on GitHub

constructor

source on GitHub

__init__(site, login, password)[source]

constructor

source on GitHub

close()[source]

Close the connection without assuming anything about it.

cwd(path, create=False)[source]

Change to a directory.

dir(path='.')[source]

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)[source]

Make a directory, return its full pathname.

pwd()[source]

Return current working directory.

transfer(file, to, debug=False)[source]

transfers a file

Paramètres:
  • file – file
  • to – destination
  • debug – if True, displays more information
Renvoie:

status

source on GitHub