(path: string, fileTree: FileTree)
| 77 | }; |
| 78 | |
| 79 | export const getFileText = (path: string, fileTree: FileTree) => { |
| 80 | const content = getFileContent(path, fileTree); |
| 81 | if (typeof content !== "string") { |
| 82 | throw new Error("File is not a text file"); |
| 83 | } |
| 84 | return content; |
| 85 | }; |
| 86 | |
| 87 | export const isFolder = (path: string, fileTree: FileTree) => { |
| 88 | const content = getFileContent(path, fileTree); |
no test coverage detected