MCPcopy Create free account
hub / github.com/openai/plugins / isProbablyTextFile

Function isProbablyTextFile

plugins/plugin-eval/src/lib/files.js:90–92  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

88}
89
90export function isProbablyTextFile(filePath) {
91 return TEXT_EXTENSIONS.has(path.extname(filePath).toLowerCase());
92}
93
94export function toPosixPath(filePath) {
95 return filePath.split(path.sep).join("/");

Callers 2

gatherDeferredTextFilesFunction · 0.90
visitSnapshotFunction · 0.90

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected