(file)
| 143 | |
| 144 | @staticmethod |
| 145 | def check(file) -> bool: |
| 146 | print("[2/3] 验证源码文件......", file=_vm_std.out, flush=True) |
| 147 | if not os.path.exists(file): |
| 148 | print("文件不存在,无法验证", file=_vm_std.out, flush=True) |
| 149 | return False |
| 150 | if os.path.getsize(file) < 1024 * 1024 * 10: |
| 151 | print("文件内容缺失", file=_vm_std.out, flush=True) |
| 152 | os.remove(file) |
| 153 | return False |
| 154 | return True |
| 155 | |
| 156 | @property |
| 157 | def file_name(self) -> str: |