-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME_InGitHub.txt
69 lines (49 loc) · 1.86 KB
/
README_InGitHub.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FTP in Python using sockets.
client7.py
FTP Client Class
----------------
This class consists of the following functions ...
.connect connect to the host.
.think output a thought to the console (debugging).
.do_nothing check for a connection.
.upload upload a file by its name and contents.
.LOGIN login to the FTP with a username and password.
.DIR get a list of files.
.SIZE get the size of a file in bytes.
.CDUP change to parent directory.
.CWD change the current working directory.
.MKD create a new folder.
.MODE set the transfer mode.
.TYPE set the type of file to be transferred.
.STRU set the file structure for transfer.
.PASV a passive connection will have the data port open.
.QUIT close session and connections.
@Federiz
*client7.py only works on Python2.2 or below.
clienteFedTP.py
FTP Client Class
----------------
This class consist of the following functions ...
.do_conectar Connect to an FTP server.
.do_pwd Print the present working directory of the FTP server.
.do_pwdx
.do_pasv Passive connection.
.do_type Sets type of file to be transferred.
.do_list Lists PWD of the FTP server.
.do_cwd Changes active working directory.
.do_mkd Makes a new directory.
.do_size Get size of a file in the FTP server.
.get_filefize Calls the command to get file size in bytes.
.do_cdup cd ..
.do_mode Sets transfer mode.
.do_stru Sets data transmission structure.
.do_stor Loads file to the FTP server.
.do_chwdx Changes active directory path.
.do_dirx Lists content of pwd.
.do_dele Deletes specific file.
.do_chmod chmod to a selected file.
.do_noop Assembly code for no-operation.
.do_retr Downloads selected file from server.
.do_EOF Ends connection and execution of the program.
@Federiz
*clienteFedTP.py only works in Python3 or above.