MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / formatArchiveSizeError

Function formatArchiveSizeError

src/utils/zipValidation.ts:99–103  ·  view source on GitHub ↗
(size: number, sizeLimit: number)

Source from the content-addressed store, hash-verified

97}
98
99function formatArchiveSizeError(size: number, sizeLimit: number): string {
100 const sizeMB = (size / (1024 * 1024)).toFixed(1);
101 const limitMB = (sizeLimit / (1024 * 1024)).toFixed(0);
102 return `Archive exceeds ${limitMB}MB limit (actual: ${sizeMB}MB)`;
103}

Callers 1

validateArchiveSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected