MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / getColmapArchiveKey

Function getColmapArchiveKey

src/utils/zipLoaderPolicy.ts:135–144  ·  view source on GitHub ↗
(entryPath: string)

Source from the content-addressed store, hash-verified

133}
134
135export function getColmapArchiveKey(entryPath: string): string {
136 const filename = entryPath.split('/').pop() ?? entryPath;
137
138 if (!entryPath.includes('sparse/')) {
139 return `sparse/0/${filename}`;
140 }
141
142 const match = entryPath.match(/(sparse\/\d+\/[^/]+)$/);
143 return match ? match[1] : `sparse/0/${filename}`;
144}
145
146export function hasRequiredColmapArchiveFiles(keys: Iterable<string>): boolean {
147 let foundCameras = false;

Callers 2

processZipArchiveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected