示例#1
0
 def _remote_dirs(self, remote_site):
     " List remote directories, and delete "
     while True:
         action, index = Menu.display_remote_list(remote_site.get_dir_list())
         if action == "q":
             return
         if action == "d":
             if Input.confirm_delete():
                 remote_site.del_dir(index - 1)
             continue
         if action == "a":
             dir = Input.prompt_add_remote_dir()
             remote_site.add_dir(dir)