def on_done(self, index):
        if self.peek_file: self.restore_view()

        if index == -1: return
        item_name = self.get_name_by_index(index)

        if self.isurl(item_name): return self.open_url(item_name)
        if self.isapp(item_name): return self.open_app(item_name)
        if path.isfile(item_name): return self.open_file(item_name)
        if path.isdir(item_name): return self.open_dir(item_name)

        sublime.status_message(item_name % 'Invalid file/directory name: `%s`.')
dataset/ETHPy150Open miusuncle/HiveOpener/opener.py/HiveOpenCommand.on_done/swapped operands of `%`