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

Function isFile

plugins/plugin-eval/src/lib/files.js:64–71  ·  view source on GitHub ↗
(targetPath)

Source from the content-addressed store, hash-verified

62}
63
64export async function isFile(targetPath) {
65 try {
66 const stats = await fs.stat(targetPath);
67 return stats.isFile();
68 } catch {
69 return false;
70 }
71}
72
73export async function readText(targetPath) {
74 return fs.readFile(targetPath, "utf8");

Callers 1

resolveTargetFunction · 0.90

Calls 1

statMethod · 0.80

Tested by

no test coverage detected