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

Function hasImageFiles

src/utils/fileClassification.ts:167–176  ·  view source on GitHub ↗
(files: Map<string, File>)

Source from the content-addressed store, hash-verified

165 * Check if the dropped files contain image files
166 */
167export function hasImageFiles(files: Map<string, File>): boolean {
168 const imageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.tiff', '.tif'];
169 for (const [, file] of files) {
170 const name = file.name.toLowerCase();
171 if (imageExtensions.some(ext => name.endsWith(ext))) {
172 return true;
173 }
174 }
175 return false;
176}
177
178function createEmptyGlobalStats(): GlobalStats {
179 return {

Callers 2

processFileDropzoneFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected