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

Method update_file_list_thread

whipFTP.py:403–417  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

401 self.process_thread_requests()
402
403 def update_file_list_thread(self):
404 try:
405 with self.thread_lock:
406 self.detailed_file_list = self.ftpController.get_detailed_file_list()
407 self.file_list = self.ftpController.get_file_list(self.detailed_file_list)
408 #Set the window title to current path
409 thread_request_queue.put(lambda:self.master.wm_title('whipFTP-'+self.ftpController.pwd()))
410 thread_request_queue.put(lambda:self.unlock_status_bar())
411 except:
412 thread_request_queue.put(lambda:self.unlock_status_bar())
413 thread_request_queue.put(lambda:self.update_status_red('Unable to retrieve file list, connection might be lost.'))
414 thread_request_queue.put(lambda:self.lock_status_bar())
415 thread_request_queue.put(lambda:self.draw_icons())
416 #Enable toolbar
417 thread_request_queue.put(lambda:self.end_wait())
418
419
420

Callers

nothing calls this directly

Calls 8

unlock_status_barMethod · 0.95
update_status_redMethod · 0.95
lock_status_barMethod · 0.95
draw_iconsMethod · 0.95
end_waitMethod · 0.95
get_file_listMethod · 0.45
pwdMethod · 0.45

Tested by

no test coverage detected