* Extract storage key from file path
(filePath: string)
| 117 | * Extract storage key from file path |
| 118 | */ |
| 119 | function extractStorageKeyFromPath(filePath: string): string { |
| 120 | if (filePath.startsWith('/api/files/serve/')) { |
| 121 | return extractStorageKey(filePath) |
| 122 | } |
| 123 | |
| 124 | return extractFilename(filePath) |
| 125 | } |
no test coverage detected