MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / SendFile

Function SendFile

file_transfer_protocol/ftp_send_receive.py:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30"""
31
32def SendFile():
33 FileName = 'example.txt' """ Enter the name of the file """
34 with open(FileName, 'rb') as LocalFile:
35 ftp.storbinary('STOR ' + FileName, LocalFile)
36 ftp.quit()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected