(filepath: string)
| 52 | }; |
| 53 | |
| 54 | const isVideoFile = (filepath: string) => { |
| 55 | return videoFileExtensions.includes(path.extname(filepath).slice(1).toLowerCase()); |
| 56 | }; |
| 57 | |
| 58 | const isAudioFile = (filepath: string) => { |
| 59 | return audioFileExtensions.includes(path.extname(filepath).slice(1).toLowerCase()); |