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

Function fetchText

src/hooks/urlLoaderManifestFetch.ts:310–317  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

308 // getHuggingFaceImagesPath so there is a single source of truth for it.
309 const relativePaths = getRelativeHuggingFaceTreePaths(entries, request.treePath);
310 const fetchText = async (relativePath: string): Promise<string | null> => {
311 try {
312 const response = await fetchImpl(joinManifestUrlPath(baseUrl, relativePath));
313 return response.ok ? await response.text() : null;
314 } catch {
315 return null;
316 }
317 };
318 const imageSource = await resolveImageSource(
319 { filePaths: relativePaths, modelDir: modelDir ?? '', fetchText },
320 IMAGE_SOURCE_STRATEGIES

Callers

nothing calls this directly

Calls 1

joinManifestUrlPathFunction · 0.90

Tested by

no test coverage detected