(name: string)
| 56 | } |
| 57 | |
| 58 | function 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. */ |
| 66 | function isDownloadableFile(entry: DropboxFileEntry): boolean { |
no outgoing calls
no test coverage detected