MCPcopy Create free account
hub / github.com/SKaplanOfficial/Raycast-PromptLab / isTextFile

Function isTextFile

src/hooks/useFiles.ts:66–71  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

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

Callers 1

getFileContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected