(filepath: string)
| 64 | }; |
| 65 | |
| 66 | const isTextFile = (filepath: string) => { |
| 67 | return ( |
| 68 | textFileExtensions.includes(path.extname(filepath).slice(1).toLowerCase()) || |
| 69 | path.extname(filepath).toLowerCase() === "" |
| 70 | ); |
| 71 | }; |
| 72 | |
| 73 | const isOfficeFile = (filepath: string) => { |
| 74 | const officeFileExtensions = ["doc", "docx", "ppt", "pptx"]; |