We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b2739 commit 4a630daCopy full SHA for 4a630da
ftp_send_receive.py
@@ -18,7 +18,7 @@
18
Enter the location of the file where the file is received
19
"""
20
21
-def ReceiveFile(filename='example.txt'):
+def receive_file(filename='example.txt'):
22
with open(filename, 'wb') as out_file:
23
ftp.retrbinary('RETR ' + filename, out_file.write, 1024)
24
ftp.quit()
@@ -28,7 +28,7 @@ def ReceiveFile(filename='example.txt'):
28
The file send will be send to the current working directory
29
30
31
-def SendFile(filename='example.txt'):
+def send_file(filename='example.txt'):
32
with open(filename, 'rb') as in_file:
33
ftp.storbinary('STOR ' + filename, in_file)
34
0 commit comments