def add_to_list(self, filename, conf):
        file_list = conf.get('files', [])

        basename = path.basename(filename)
        name, ext = path.splitext(basename)

        # check whether keep extention
        desc = name if ext in ['.exe', '.lnk', '.app'] else basename

        file_list.append([filename, desc])

        conf.set('files', file_list)
        sublime.save_settings(CONFIG_BASE_NAME)
dataset/ETHPy150Open miusuncle/HiveOpener/add2favor.py/HiveAddToFavorCommand.add_to_list/original