def _proc_uncompress(path_file_name, uncompress_path, task_id): # uncompress zip .zip .trx 解压缩 提取系统文件目录 list = SysUtils.uncompress(path_file_name, uncompress_path) # sub_path = file_name.split('.')[0] # 提取.BIN文件 bin_file = getfilebytype(list, ".bin") if len(bin_file) == 0: bin_file = getfilebytype(list, '.trx') if len(bin_file) == 0: bin_file = getfilebytype(list, '.img') if len(bin_file) == 0: bin_file = getfilebytype(list, '.w') if len(bin_file) == 0: bin_file = getfilebytype(list, '.chk') if len(bin_file) == 0: bin_file = getfilebytype(list, '.bix') if len(bin_file) == 0: bin_file = getfilebytype(list, '.Image') if len(bin_file) == 0: bin_file = getfilebytype(list, '.BootImage') if len(bin_file) == 0: bin_file = getfilebytype(list, '.jffs2') if len(bin_file) == 0: bin_file = getfilebytype(list, '.yaffs2') if len(bin_file) == 0: bin_file = getfilebytype(list, '.ubifs') if len(bin_file) == 0: bin_file = getfilebytype(list, '.cramfs') return bin_file
def _proc_com_uncompress(path_file_name, uncompress_path, task_id): return SysUtils.uncompress(path_file_name, uncompress_path)