MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / check

Method check

class/projectModel/btpyvm.py:145–154  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

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:

Callers 1

downloadMethod · 0.95

Calls 2

existsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected