MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / zipFileCheck

Method zipFileCheck

daemon/src/service/system_file.ts:321–326  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

319 }
320
321 private zipFileCheck(path: string) {
322 const fileInfo = fs.statSync(path);
323 const MAX_ZIP_GB = globalConfiguration.config.maxZipFileSize;
324 if (fileInfo.size > 1024 * 1024 * 1024 * MAX_ZIP_GB)
325 throw new Error($t("TXT_CODE_system_file.unzipLimit", { max: MAX_ZIP_GB }));
326 }
327}

Callers 1

unzipMethod · 0.95

Calls 1

$tFunction · 0.90

Tested by

no test coverage detected