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

Function getZipEntryLookupCandidates

src/utils/zipLoaderPolicy.ts:161–172  ·  view source on GitHub ↗
(imageName: string)

Source from the content-addressed store, hash-verified

159}
160
161export function getZipEntryLookupCandidates(imageName: string): string[] {
162 const normalized = imageName.replace(/\\/g, '/');
163 const filename = normalized.split('/').pop() ?? normalized;
164 const candidates = [
165 normalized,
166 filename,
167 `images/${normalized}`,
168 `sparse/0/${normalized}`,
169 ];
170
171 return Array.from(new Set(candidates));
172}

Callers 2

findZipEntryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected