MCPcopy Index your code
hub / github.com/simstudioai/sim / hasSupportedExtension

Function hasSupportedExtension

apps/sim/connectors/dropbox/dropbox.ts:58–63  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

56}
57
58function hasSupportedExtension(name: string): boolean {
59 const lower = name.toLowerCase()
60 const dotIndex = lower.lastIndexOf('.')
61 if (dotIndex === -1) return false
62 return SUPPORTED_EXTENSIONS.has(lower.slice(dotIndex))
63}
64
65/** A downloadable file with a supported extension, regardless of size. */
66function isDownloadableFile(entry: DropboxFileEntry): boolean {

Callers 1

isDownloadableFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected