def do_cd(self, arg):
        '''Change selected IMAP folder.'''
        try:
            args = docopt.docopt('Usage: cd <directory>', arg)
        except __HOLE__:
            return

        cd_result = imap_cli.change_dir(self.imap_account,
                                        directory=args['<directory>'])
        if cd_result == -1:
            sys.stdout.write('IMAP Folder can\'t be found\n')
        else:
            self.prompt = '(imap-cli "{}") '.format(args['<directory>'])
dataset/ETHPy150Open Gentux/imap-cli/imap_cli/scripts/imap_shell.py/ImapShell.do_cd