MCPcopy
hub / github.com/simstudioai/sim / getExtension

Function getExtension

apps/sim/lib/copilot/vfs/file-reader.ts:60–63  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

58}
59
60function getExtension(filename: string): string {
61 const dot = filename.lastIndexOf('.')
62 return dot >= 0 ? filename.slice(dot + 1).toLowerCase() : ''
63}
64
65function detectImageMime(buf: Buffer, claimed: string): string {
66 if (buf.length < 12) return claimed

Callers 1

readFileRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected