MCPcopy Create free account
hub / github.com/RainingComputers/whipFTP / delete_file

Method delete_file

FTP_controller.py:144–149  ·  view source on GitHub ↗
(self, file_name, status_command)

Source from the content-addressed store, hash-verified

142 status_command(copy_from, 'Deleting local directory')
143
144 def delete_file(self, file_name, status_command):
145 try:
146 self.ftp.sendcmd('DELE '+file_name)
147 status_command(file_name, 'Deleted')
148 except:
149 status_command(file_name, 'Failed to delete')
150
151 def delete_dir(self, dir_name, status_command):
152 #Go into the directory

Callers 2

delete_dirMethod · 0.95
delete_itemMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected