Skip to content

Commit 4a630da

Browse files
authored
receive_file() and send_file()
1 parent 16b2739 commit 4a630da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ftp_send_receive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Enter the location of the file where the file is received
1919
"""
2020

21-
def ReceiveFile(filename='example.txt'):
21+
def receive_file(filename='example.txt'):
2222
with open(filename, 'wb') as out_file:
2323
ftp.retrbinary('RETR ' + filename, out_file.write, 1024)
2424
ftp.quit()
@@ -28,7 +28,7 @@ def ReceiveFile(filename='example.txt'):
2828
The file send will be send to the current working directory
2929
"""
3030

31-
def SendFile(filename='example.txt'):
31+
def send_file(filename='example.txt'):
3232
with open(filename, 'rb') as in_file:
3333
ftp.storbinary('STOR ' + filename, in_file)
3434
ftp.quit()

0 commit comments

Comments
 (0)