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

Method change_dir

whipFTP.py:623–634  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

621
622
623 def change_dir(self, event):
624 #Delete selected file list
625 self.selected_file_indices.clear()
626 #Show message box
627 if(self.current_file_index >= 0 and self.current_file_index < len(self.file_list) and self.mouse_x < self.max_width):
628 if(self.ftpController.is_dir(self.detailed_file_list[self.current_file_index])):
629 try:
630 self.ftpController.ftp.cwd(self.file_list[self.current_file_index])
631 self.update_file_list()
632 except:
633 self.update_status_red('Unable to open directory, try reconnecting.')
634 self.lock_status_bar()
635
636 def goto_window_ask(self):
637 self.goto_window = Filedialogs.name_dialog(self.master, 'Goto', self.goto_path, self.goto_icon, 'Enter path:')

Callers

nothing calls this directly

Calls 5

update_file_listMethod · 0.95
update_status_redMethod · 0.95
lock_status_barMethod · 0.95
cwdMethod · 0.80
is_dirMethod · 0.45

Tested by

no test coverage detected