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

Method upload_thread

whipFTP.py:787–798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

785 self.upload_dialog = Filedialogs.open_file_dialog(self.master, 'Choose file(s) or folder(s) to upload', self.upload_thread)
786
787 def upload_thread(self):
788 #Create console/terminal window
789 self.create_progress_window()
790 #Destroy upload window
791 self.upload_dialog.destroy()
792 #Set status
793 self.update_status('Uploading file(s)...')
794 #start thread
795 self.thread = threading.Thread(target = self.upload, args = (self.ftpController, self.upload_dialog.file_list, self.upload_dialog.selected_file_indices))
796 self.thread.daemon = True
797 self.thread.start()
798 self.process_thread_requests()
799
800 def upload(self, ftpController, file_list, selected_file_indices):
801 #Thread safe progress function

Callers

nothing calls this directly

Calls 4

update_statusMethod · 0.95
destroyMethod · 0.45

Tested by

no test coverage detected