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

Function getPathSuffixes

src/utils/imageFileLookupPolicy.ts:59–68  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

57}
58
59export function getPathSuffixes(path: string): string[] {
60 const parts = normalizeImagePath(path).split('/');
61 const suffixes: string[] = [];
62
63 for (let i = 0; i < parts.length; i++) {
64 suffixes.push(parts.slice(i).join('/'));
65 }
66
67 return suffixes;
68}
69
70export function isAuxiliaryImagePath(path: string): boolean {
71 const segments = normalizeImagePath(path)

Callers 1

Calls 1

normalizeImagePathFunction · 0.85

Tested by

no test coverage detected