File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 11"""
2- File transfer protocol used to send and receive files using FTP server.
3- Use credentials to provide access to the FTP client
2+ File transfer protocol used to send and receive files using FTP server.
3+ Use credentials to provide access to the FTP client
44
5- Note: Do not use root username & password for security reasons
6- Create a seperate user and provide access to a home directory of the user
7- Use login id and password of the user created
8- cwd here stands for current working directory
5+ Note: Do not use root username & password for security reasons
6+ Create a seperate user and provide access to a home directory of the user
7+ Use login id and password of the user created
8+ cwd here stands for current working directory
99"""
1010
1111from ftplib import FTP
1414ftp .cwd ('/Enter the directory here/' )
1515
1616"""
17- The file which will be received via the FTP server
18- Enter the location of the file where the file is received
17+ The file which will be received via the FTP server
18+ Enter the location of the file where the file is received
1919"""
2020
2121def ReceiveFile ():
@@ -25,8 +25,8 @@ def ReceiveFile():
2525ftp .quit ()
2626
2727"""
28- The file which will be sent via the FTP server
29- The file send will be send to the current working directory
28+ The file which will be sent via the FTP server
29+ The file send will be send to the current working directory
3030"""
3131
3232def SendFile ():
You can’t perform that action at this time.
0 commit comments