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

Function send_file

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

Source from the content-addressed store, hash-verified

33
34
35def send_file(filename="example.txt"):
36 with open(filename, "rb") as in_file:
37 ftp.storbinary("STOR " + filename, in_file)
38 ftp.quit()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected