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

Function isArchiveFile

src/utils/zipLoader.ts:98–102  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

96 * (.zip, .tar, .tar.gz/.tgz, .tar.bz2/.tbz2/.tbz, .tar.xz/.txz, .7z).
97 */
98export function isArchiveFile(file: File): boolean {
99 if (isSplatFilePath(file.name)) return false;
100 if (hasArchiveExtension(file.name)) return true;
101 return isArchiveMimeType(file.type);
102}
103
104// ============================================================================
105// Archive Initialization

Callers

nothing calls this directly

Calls 3

isSplatFilePathFunction · 0.90
hasArchiveExtensionFunction · 0.90
isArchiveMimeTypeFunction · 0.90

Tested by

no test coverage detected