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

Function isDownloadableFile

apps/sim/connectors/dropbox/dropbox.ts:66–70  ·  view source on GitHub ↗

A downloadable file with a supported extension, regardless of size.

(entry: DropboxFileEntry)

Source from the content-addressed store, hash-verified

64
65/** A downloadable file with a supported extension, regardless of size. */
66function isDownloadableFile(entry: DropboxFileEntry): boolean {
67 return (
68 entry['.tag'] === 'file' && entry.is_downloadable !== false && hasSupportedExtension(entry.name)
69 )
70}
71
72async function downloadFileContent(accessToken: string, filePath: string): Promise<string> {
73 const response = await fetchWithRetry('https://content.dropboxapi.com/2/files/download', {

Callers 1

dropbox.tsFile · 0.85

Calls 1

hasSupportedExtensionFunction · 0.85

Tested by

no test coverage detected