MCPcopy Create free account
hub / github.com/geekcomputers/Python / receive_file

Function receive_file

ftp_send_receive.py:23–26  ·  view source on GitHub ↗
(filename="example.txt")

Source from the content-addressed store, hash-verified

21
22
23def receive_file(filename="example.txt"):
24 with open(filename, "wb") as out_file:
25 ftp.retrbinary("RETR " + filename, out_file.write, 1024)
26 ftp.quit()
27
28
29"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected